]> git.mxchange.org Git - friendica.git/commitdiff
count() didn't notice about FALSE ... #2390
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 21:54:06 +0000 (22:54 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 21:54:06 +0000 (22:54 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
mod/profile.php

index 26bd395230b8d937df35ceb1c5fcb10891116227..c3f58ab528142fcc850124610eb2883e375cbe62 100644 (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);