fixed bug with invalid hostnames

This commit is contained in:
Roland Gruber 2003-12-06 13:40:01 +00:00
parent 6e27c042c8
commit 913e961ad5
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ if($_POST['action'] == "checklogin")
{
$result = $_SESSION['ldap']->connect($_POST['username'],$_POST['passwd']); // Connect to LDAP server for verifing username/password
if($result == 0) // Username/password correct. Do some configuration and load main frame.
if($result === 0) // Username/password correct. Do some configuration and load main frame.
{
$_SESSION['loggedIn'] = true;
$_SESSION['language'] = $_POST['language']; // Write selected language in session