aboutsummaryrefslogtreecommitdiff
path: root/disablechat.php
diff options
context:
space:
mode:
Diffstat (limited to 'disablechat.php')
-rw-r--r--disablechat.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/disablechat.php b/disablechat.php
index 38a440cf2..490fb327b 100644
--- a/disablechat.php
+++ b/disablechat.php
@@ -1,7 +1,7 @@
<?php
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- if (isloggedin()) {
- get_loggedin_user()->chatenabled = false;
+ if (elgg_is_logged_in()) {
+ elgg_get_logged_in_user_entity()->chatenabled = false;
system_message(elgg_echo("beechat:disabled"));
}
forward($_SERVER['HTTP_REFERER']);