diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-04 17:06:52 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-04 17:07:25 -0800 |
commit | df23ef36c75da646886809622134e14b5f7207ab (patch) | |
tree | aebe4b89b639bda0dcd78a34185a530567872891 /include/items.php | |
parent | e1ffacbe322acb54e2d16b4921c030e96d8bc50e (diff) | |
download | volse-hubzilla-df23ef36c75da646886809622134e14b5f7207ab.tar.gz volse-hubzilla-df23ef36c75da646886809622134e14b5f7207ab.tar.bz2 volse-hubzilla-df23ef36c75da646886809622134e14b5f7207ab.zip |
api_zot: implement /api/z/1.0/network/stream and fix /api/z/1.0/channel/stream
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 215f70031..106ad424d 100755 --- a/include/items.php +++ b/include/items.php @@ -3980,8 +3980,8 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C $sql_nets .= "( abook.abook_closeness >= " . intval($arr['cmin']) . " "; $sql_nets .= " AND abook.abook_closeness <= " . intval($arr['cmax']) . " ) "; - /** @fixme dead code, $cmax is undefined */ - if ($cmax == 99) + + if ($arr['cmax'] == 99) $sql_nets .= " OR abook.abook_closeness IS NULL ) "; } } |