From df23ef36c75da646886809622134e14b5f7207ab Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 4 Dec 2016 17:06:52 -0800 Subject: api_zot: implement /api/z/1.0/network/stream and fix /api/z/1.0/channel/stream --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/items.php') 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 ) "; } } -- cgit v1.2.3