aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-25 06:01:40 -0700
committerFriendika <info@friendika.com>2011-08-25 06:01:40 -0700
commit1b33ba6587766d939ac37c1ca60aa5c012e4da9d (patch)
treefc7fc3229decfe458f34751c15b495d9f79d45d8 /include
parent83605cf3dc03be7c2ddad48d04aede90d68069e3 (diff)
downloadvolse-hubzilla-1b33ba6587766d939ac37c1ca60aa5c012e4da9d.tar.gz
volse-hubzilla-1b33ba6587766d939ac37c1ca60aa5c012e4da9d.tar.bz2
volse-hubzilla-1b33ba6587766d939ac37c1ca60aa5c012e4da9d.zip
third attempt to get rid of this stupid warning
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 f0dd828d1..691a8c9f9 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($aliases && count($aliases)) {
+ if(is_array($aliases) && count($aliases)) {
foreach($aliases as $alias) {
$links[]['@attributes'] = array('rel' => 'alias' , 'href' => $alias);
}