third attempt to get rid of this stupid warning
This commit is contained in:
parent
83605cf3dc
commit
1b33ba6587
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ function fetch_xrd_links($url) {
|
||||||
$aliases = array($alias);
|
$aliases = array($alias);
|
||||||
else
|
else
|
||||||
$aliases = $alias;
|
$aliases = $alias;
|
||||||
if($aliases && count($aliases)) {
|
if(is_array($aliases) && count($aliases)) {
|
||||||
foreach($aliases as $alias) {
|
foreach($aliases as $alias) {
|
||||||
$links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias);
|
$links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue