aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-21 00:13:44 -0700
committerFriendika <info@friendika.com>2011-08-21 00:13:44 -0700
commitc97652a044d009d7212f3fc4195e9aabd1c236c5 (patch)
tree14ba0199e53cd01f01f43c1022bd1c10764cb116 /include
parenta3eb73ed11fb9940755b2a3e6d996232609c0e7f (diff)
downloadvolse-hubzilla-c97652a044d009d7212f3fc4195e9aabd1c236c5.tar.gz
volse-hubzilla-c97652a044d009d7212f3fc4195e9aabd1c236c5.tar.bz2
volse-hubzilla-c97652a044d009d7212f3fc4195e9aabd1c236c5.zip
php error when no aliases
Diffstat (limited to 'include')
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index 10e3648a1..d4f0d8aa7 100644
--- a/include/network.php
+++ b/include/network.php
@@ -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);
}