Fixes another warning because of count()'s lazyness. #2390
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 22:02:42 +0000 (23:02 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 22:02:42 +0000 (23:02 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/network.php

index a9f369a..202be04 100644 (file)
@@ -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'];