1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Only use a non-empty requested language

This commit is contained in:
Gabor Hojtsy
2003-06-04 08:38:31 +00:00
parent 7eca1945e0
commit 98679b4e1f

View File

@@ -50,7 +50,7 @@ function language_choose_code()
$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