Fixes E_WARNING from foreach() because count() seem to return TRUE even when $r is no array ?!
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
858438daec
commit
b56a9bfacc
1
boot.php
1
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` != ''",
|
$r = q("SELECT `id`,`network`,`url`,`thumb`, `rel` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `thumb` != ''",
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(is_filled_array($r)) {
|
if(is_filled_array($r)) {
|
||||||
foreach($r as $rr){
|
foreach($r as $rr){
|
||||||
$url = normalise_link($rr['url']);
|
$url = normalise_link($rr['url']);
|
||||||
|
|
Loading…
Reference in a new issue