From: Roland Haeder Date: Sat, 12 Mar 2016 21:54:06 +0000 (+0100) Subject: count() didn't notice about FALSE ... #2390 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f0ae9843f2e2e1268e6f1913949c7912ce9b534;p=friendica.git count() didn't notice about FALSE ... #2390 Signed-off-by: Roland Haeder --- diff --git a/mod/profile.php b/mod/profile.php index 26bd395230..c3f58ab528 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -300,7 +300,7 @@ function profile_content(&$a, $update = 0) { $parents_arr = array(); $parents_str = ''; - if(count($r)) { + if (dba::is_result($r)) { foreach($r as $rr) $parents_arr[] = $rr['item_id']; $parents_str = implode(', ', $parents_arr);