garbage in garbage out
This commit is contained in:
@@ -1946,9 +1946,9 @@ function find_xchan_in_array($xchan,$arr) {
|
||||
}
|
||||
|
||||
function get_rel_link($j,$rel) {
|
||||
if(count($j))
|
||||
if(is_array($j) && ($j))
|
||||
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 '';
|
||||
|
Reference in New Issue
Block a user