php error when no aliases

This commit is contained in:
Friendika 2011-08-21 00:13:44 -07:00
parent a3eb73ed11
commit c97652a044
1 changed files with 1 additions and 1 deletions

View File

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