Re: repetition of tedious references

From: Date: Thu, 19 Jul 2007 22:23:05 +0000
Subject: Re: repetition of tedious references
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259197@lists.php.net to get a copy of this message
From: tedd <tedd@sperling.com> Olav: Mine too. But, Rasmus gave me this: $action = isset($_GET['action']) ? $_GET['action'] : null; Which could be translated to: $language = isset ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) : "*"; I think that might help. Anyone see a problem with it? Cheers, tedd
I see a problem. If it is set and == "", you let it stay "" instead of being assigned "*". Only when it is not "" should it be allowed to stay the same. _________________________________________________________________ Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01

« previous php.general (#259197) next »