Browse Source

third attempt to get rid of this stupid warning

pull/1/head
Friendika 10 years ago
parent
commit
1b33ba6587
  1. 2
      include/network.php

2
include/network.php

@ -536,7 +536,7 @@ function fetch_xrd_links($url) {
$aliases = array($alias);
else
$aliases = $alias;
if($aliases && count($aliases)) {
if(is_array($aliases) && count($aliases)) {
foreach($aliases as $alias) {
$links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias);
}

Loading…
Cancel
Save