From: Friendika Date: Sun, 21 Aug 2011 07:13:44 +0000 (-0700) Subject: php error when no aliases X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c97652a044d009d7212f3fc4195e9aabd1c236c5;p=friendica.git php error when no aliases --- diff --git a/include/network.php b/include/network.php index 10e3648a18..d4f0d8aa76 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); }