garbage in garbage out
This commit is contained in:
parent
44af22b968
commit
3f50313862
@ -1946,9 +1946,9 @@ function find_xchan_in_array($xchan,$arr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_rel_link($j,$rel) {
|
function get_rel_link($j,$rel) {
|
||||||
if(count($j))
|
if(is_array($j) && ($j))
|
||||||
foreach($j as $l)
|
foreach($j as $l)
|
||||||
if($l['rel'] === $rel)
|
if(array_key_exists('rel',$j) && $l['rel'] === $rel && array_key_exists('href',$l))
|
||||||
return $l['href'];
|
return $l['href'];
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
@ -1084,6 +1084,11 @@ function zot_import($arr, $sender_url) {
|
|||||||
|
|
||||||
if(is_array($incoming)) {
|
if(is_array($incoming)) {
|
||||||
foreach($incoming as $i) {
|
foreach($incoming as $i) {
|
||||||
|
if(! is_array($i)) {
|
||||||
|
logger('incoming is not an array');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$result = null;
|
$result = null;
|
||||||
|
|
||||||
if(array_key_exists('iv',$i['notify'])) {
|
if(array_key_exists('iv',$i['notify'])) {
|
||||||
|
Reference in New Issue
Block a user