]> git.mxchange.org Git - friendica.git/commitdiff
Fixes E_WARNING from foreach() because count() seem to return TRUE even when $r is...
authorRoland Haeder <roland@mxchange.org>
Fri, 4 Mar 2016 21:46:30 +0000 (22:46 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 4 Mar 2016 21:46:30 +0000 (22:46 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
boot.php

index a1f29398f690f39f52bd7cbbd116967e5425c2f0..fdf0fa3aa733428504d265abf41be9c49ef79017 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1849,7 +1849,8 @@ function load_contact_links($uid) {
        $r = q("SELECT `id`,`network`,`url`,`thumb`, `rel` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `thumb` != ''",
                        intval($uid)
        );
-       if(count($r)) {
+
+       if(is_filled_array($r)) {
                foreach($r as $rr){
                        $url = normalise_link($rr['url']);
                        $ret[$url] = $rr;