X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnav.php;h=2a9f24ca9f5644e351e4ac29fd7ee2a676a4074e;hb=f89044ed614350a3f503998eb6bc7442ccda878b;hp=7a8230cc15da8f4bc6b9f6a6c7d0cb9479b82c0b;hpb=4fdced1a0a9949cd49cb645bc5ac0948e9ce408a;p=friendica.git diff --git a/include/nav.php b/include/nav.php index 7a8230cc15..2a9f24ca9f 100644 --- a/include/nav.php +++ b/include/nav.php @@ -88,7 +88,7 @@ function nav_info(App $a) // user info $r = q("SELECT `micro` FROM `contact` WHERE `uid` = %d AND `self` = 1", intval($a->user['uid'])); $userinfo = array( - 'icon' => (count($r) ? $a->remove_baseurl($r[0]['micro']) : 'images/person-48.jpg'), + 'icon' => (dbm::is_result($r) ? $a->remove_baseurl($r[0]['micro']) : 'images/person-48.jpg'), 'name' => $a->user['username'], ); } else {