aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-12 15:12:42 -0800
committerfriendica <info@friendica.com>2014-02-12 15:12:42 -0800
commitc7dda0c4c161b347c41f11bc8c6af266f08a89a3 (patch)
tree3e15254f7db7af02d4d6dfd6b5e98b91f5373696
parent11e6530d7fc6a14c50bf1b7776f40a2b6ee571f0 (diff)
downloadvolse-hubzilla-c7dda0c4c161b347c41f11bc8c6af266f08a89a3.tar.gz
volse-hubzilla-c7dda0c4c161b347c41f11bc8c6af266f08a89a3.tar.bz2
volse-hubzilla-c7dda0c4c161b347c41f11bc8c6af266f08a89a3.zip
return the expected array
-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))
);