cvs: phpweb /include langchooser.inc

From: Date: Wed, 04 Jun 2003 08:38:31 +0000
Subject: cvs: phpweb /include langchooser.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18488@lists.php.net to get a copy of this message
goba Wed Jun 4 04:38:31 2003 EDT Modified files: /phpweb/include langchooser.inc Log: Only use a non-empty requested language Index: phpweb/include/langchooser.inc diff -u phpweb/include/langchooser.inc:1.29 phpweb/include/langchooser.inc:1.30 --- phpweb/include/langchooser.inc:1.29 Wed Jun 4 04:18:37 2003 +++ phpweb/include/langchooser.inc Wed Jun 4 04:38:31 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: langchooser.inc,v 1.29 2003/06/04 08:18:37 goba Exp $ +// $Id: langchooser.inc,v 1.30 2003/06/04 08:38:31 goba Exp $ /* @@ -50,7 +50,7 @@ $explicitly_specified = ''; $selected = ''; // Specified for the request (GET/POST parameter) - if (isset($_REQUEST['lang'])) { + if (!empty($_REQUEST['lang'])) { $explicitly_specified = language_add($_REQUEST['lang'], $languages); // Set the language in a cookie for a year

« previous php.mirrors (#18488) next »