From add9814caac2fe102a951574fe5d8c40ec8b4237 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 9 Aug 2010 18:33:33 +0200 Subject: minor fix --- actions/save_state.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'actions') diff --git a/actions/save_state.php b/actions/save_state.php index f3a818f72..42e429e4a 100644 --- a/actions/save_state.php +++ b/actions/save_state.php @@ -9,18 +9,21 @@ * @link http://beechannels.com/ */ - gatekeeper(); +// gatekeeper(); - global $SESSION; - - if (!empty($_POST['beechat_state'])) - { - $SESSION->offsetSet('beechat_state', get_input('beechat_state')); - } - elseif (!empty($_POST['beechat_conn'])) + if (isloggedin()) { - $SESSION->offsetSet('beechat_conn', get_input('beechat_conn')); - } - + + global $SESSION; + + if (!empty($_POST['beechat_state'])) + { + $SESSION->offsetSet('beechat_state', $_POST['beechat_state']); + } + elseif (!empty($_POST['beechat_conn'])) + { + $SESSION->offsetSet('beechat_conn', get_input('beechat_conn')); + } + } exit(); ?> -- cgit v1.2.3