Re: [svn-commits] r8539 - r3/trunk/binarycloud/debug

Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Thu, 26 May 2005 13:15:51 +0200
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hi Bas,

[email protected] wrote:
> Modified: r3/trunk/binarycloud/debug/Debug.php
> ===================================================================
> -        $clientinfo['Accept Language'] = join(',', $client->getAcceptedLangs());
> +        $acceptedLanguages = $client->getAcceptedLangs();
> +        if (!is_null($acceptedLanguages)) $clientinfo['Accept Language'] = join(',', $acceptedLanguages);
> +        else $clientinfo['Accept Language'] = '';

Wouldn't it be simpler to correct Client to return array() instead of
null ?
Accepted langages is used in i18n with count($a)>0 anyway.
-- 
Jean-Christophe Michel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev