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

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2016-03-12 22:54:06 +01:00
parent 9cfc249b12
commit 74d4f7fcd6
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_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);