aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-02 03:11:23 -0800
committerfriendica <info@friendica.com>2013-02-02 03:11:23 -0800
commited277f82f4def28fdedd5d6f8e763d8e1c0714ce (patch)
tree8e3917d601e68d9a9e39a2791554eaed65d714d4 /include/zot.php
parent7645b440e893959846da2e8984c2a0a7e8c62a3b (diff)
downloadvolse-hubzilla-ed277f82f4def28fdedd5d6f8e763d8e1c0714ce.tar.gz
volse-hubzilla-ed277f82f4def28fdedd5d6f8e763d8e1c0714ce.tar.bz2
volse-hubzilla-ed277f82f4def28fdedd5d6f8e763d8e1c0714ce.zip
searchable flag logic reversed
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index a1169ea3b..5afa9d496 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -229,8 +229,10 @@ function zot_refresh($them,$channel = null) {
$j = json_decode($result['body'],true);
- if(! (($j) && ($j['success'])))
+ if(! (($j) && ($j['success']))) {
+ logger('zot_refresh: result not decodable');
return false;
+ }
$x = import_xchan($j);
@@ -548,10 +550,10 @@ function import_xchan($arr) {
&& ($arr['site']['url'] != z_root()))
$arr['searchable'] = false;
-
+ $hidden = (1 - intval($arr['searchable']));
// Be careful - XCHAN_FLAGS_HIDDEN should evaluate to 1
- if(($r[0]['xchan_flags'] & XCHAN_FLAGS_HIDDEN) != $arr['searchable'])
+ if(($r[0]['xchan_flags'] & XCHAN_FLAGS_HIDDEN) != $hidden)
$new_flags = $r[0]['xchan_flags'] ^ XCHAN_FLAGS_HIDDEN;
else
$new_flags = $r[0]['xchan_flags'];