diff options
author | Friendika <info@friendika.com> | 2011-08-16 20:43:34 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-16 20:43:34 -0700 |
commit | fafcab70e1e56327ef39f22ccd915f41b75b81f2 (patch) | |
tree | ea2beeaf441a92aaa3cb937d5fe24916934416f2 /include/network.php | |
parent | b28b468b2182493b958afecb388501fd66de230f (diff) | |
download | volse-hubzilla-fafcab70e1e56327ef39f22ccd915f41b75b81f2.tar.gz volse-hubzilla-fafcab70e1e56327ef39f22ccd915f41b75b81f2.tar.bz2 volse-hubzilla-fafcab70e1e56327ef39f22ccd915f41b75b81f2.zip |
fill in framework for d* outgoing
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); + } } } |