count() didn't notice about FALSE ... #2390
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
9cfc249b12
commit
7f0ae9843f
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ function profile_content(&$a, $update = 0) {
|
||||||
$parents_arr = array();
|
$parents_arr = array();
|
||||||
$parents_str = '';
|
$parents_str = '';
|
||||||
|
|
||||||
if(count($r)) {
|
if (dba::is_result($r)) {
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$parents_arr[] = $rr['item_id'];
|
$parents_arr[] = $rr['item_id'];
|
||||||
$parents_str = implode(', ', $parents_arr);
|
$parents_str = implode(', ', $parents_arr);
|
||||||
|
|
Loading…
Reference in a new issue