Fixes another warning because of count()'s lazyness. #2390

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2016-03-12 23:02:42 +01:00
parent 7f0ae9843f
commit 47b591c09a
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View 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'];