foreach warning

This commit is contained in:
zotlabs 2020-07-22 16:40:58 -07:00
parent 80e4f9ce4c
commit 9d9c4b1c6b
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@
return false;
}
$channel = channelx_by_n(api_user());
logger('channel: ' . print_r($channel,true));
// logger('channel: ' . print_r($channel,true));
json_return_and_die($channel);
}

View file

@ -934,7 +934,7 @@ function discover_by_webbie($webbie, $protocol = '', $verify = true) {
}
}
if($x && array_key_exists('links',$x) && $x['links']) {
if($x && array_key_exists('links',$x) && is_array($x['links'])) {
foreach($x['links'] as $link) {
if(array_key_exists('rel',$link)) {