From fafcab70e1e56327ef39f22ccd915f41b75b81f2 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 16 Aug 2011 20:43:34 -0700 Subject: fill in framework for d* outgoing --- include/network.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 9871b9edc..bbf1d6a63 100644 --- a/include/network.php +++ b/include/network.php @@ -536,8 +536,10 @@ function fetch_xrd_links($url) { $aliases = array($alias); else $aliases = $alias; - foreach($aliases as $alias) { - $links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias); + if(count($aliases)) { + foreach($aliases as $alias) { + $links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias); + } } } -- cgit v1.2.3