From: Friendika Date: Thu, 25 Aug 2011 13:01:40 +0000 (-0700) Subject: third attempt to get rid of this stupid warning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b33ba6587766d939ac37c1ca60aa5c012e4da9d;p=friendica.git third attempt to get rid of this stupid warning --- diff --git a/include/network.php b/include/network.php index f0dd828d14..691a8c9f9e 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); }