]> 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:53:22 +0000 (22:53 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
boot.php

index b049099ea8078f8b24942787325bbf5e135d1a71..ea9f7f9e0c2360d9899be95d29987f1442d31908 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1838,6 +1838,7 @@ 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(is_filled_array($r)) {
                foreach($r as $rr){
                        $url = normalise_link($rr['url']);