fixed language selection (2996335)

This commit is contained in:
Roland Gruber 2010-05-08 11:49:30 +00:00
parent d0819db243
commit 6aa7441b9f
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ June 2010 3.1.0
- fixed bugs:
-> Asterisk password handling (patch 2979728)
-> Samba domain SID check (2994528)
-> language selection at login (2996335)
24.03.2010 3.0.0

View File

@ -125,7 +125,7 @@ function display_LoginPage($config_object) {
$value = explode(":", $line);
$languages[$i]["link"] = $value[0] . ":" . $value[1];
$languages[$i]["descr"] = $value[2];
if(rtrim($line) == $_SESSION["language"])
if(trim($line) == trim($_SESSION["language"]))
{
$languages[$i]["default"] = "YES";
}