From: Roland Haeder Date: Sat, 12 Mar 2016 22:02:42 +0000 (+0100) Subject: Fixes another warning because of count()'s lazyness. #2390 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=47b591c09a7773ff3eeaa60e53d3508d79bcc129;p=friendica.git Fixes another warning because of count()'s lazyness. #2390 Signed-off-by: Roland Haeder --- diff --git a/mod/network.php b/mod/network.php index a9f369a894..202be047ea 100644 --- a/mod/network.php +++ b/mod/network.php @@ -792,7 +792,7 @@ function network_content(&$a, $update = 0) { $parents_str = ''; $date_offset = ""; - if(count($r)) { + if(dba::is_result($r)) { foreach($r as $rr) if(! in_array($rr['item_id'],$parents_arr)) $parents_arr[] = $rr['item_id'];