aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2010-08-09 18:33:33 +0200
committerroot <root@migration.vz.lan>2012-10-24 13:21:35 +0000
commitadd9814caac2fe102a951574fe5d8c40ec8b4237 (patch)
tree1bedfc5cf66e47df975dc6a04dfa0ceeb4b266ab /actions
parent8ed0cede5e2422b49327d3e47333032b2b666735 (diff)
downloadelgg-add9814caac2fe102a951574fe5d8c40ec8b4237.tar.gz
elgg-add9814caac2fe102a951574fe5d8c40ec8b4237.tar.bz2
minor fix
Diffstat (limited to 'actions')
-rw-r--r--actions/save_state.php25
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();
?>