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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user