aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/identity.php b/include/identity.php
index 12eeb47ac..627e808ea 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -1154,11 +1154,11 @@ function is_member($s) {
function get_online_status($nick) {
- if(get_config('system','block_public') && ! local_user() && ! remote_user())
- return;
-
$ret = array('result' => false);
+ if(get_config('system','block_public') && ! local_user() && ! remote_user())
+ return $ret;
+
$r = q("select channel_id, channel_hash from channel where channel_address = '%s' limit 1",
dbesc(argv(1))
);