mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
foreach warning
This commit is contained in:
parent
80e4f9ce4c
commit
9d9c4b1c6b
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue