]> git.mxchange.org Git - friendica.git/commitdiff
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 a9f369a894182fac5831c85d63438b3b04baa121..202be047ea76cf6d4c441212e65061bb5e9c9769 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'];