diff options
author | Pablo Martin <caedes@sindominio.net> | 2010-08-09 18:33:33 +0200 |
---|---|---|
committer | root <root@migration.vz.lan> | 2012-10-24 13:21:35 +0000 |
commit | add9814caac2fe102a951574fe5d8c40ec8b4237 (patch) | |
tree | 1bedfc5cf66e47df975dc6a04dfa0ceeb4b266ab /actions/save_state.php | |
parent | 8ed0cede5e2422b49327d3e47333032b2b666735 (diff) | |
download | elgg-add9814caac2fe102a951574fe5d8c40ec8b4237.tar.gz elgg-add9814caac2fe102a951574fe5d8c40ec8b4237.tar.bz2 |
minor fix
Diffstat (limited to 'actions/save_state.php')
-rw-r--r-- | actions/save_state.php | 25 |
1 files changed, 14 insertions, 11 deletions
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(); ?> |