1
1
Fork 0

count() didn't notice about FALSE ... #2390

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-03-12 22:54:06 +01:00
parent 9cfc249b12
commit 7f0ae9843f
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -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);