Code

Updated opacity
[gosa.git] / html / index.php
index b20c920e660b796c2d715eb6e9428f78aa1137d4..c33e7bbcd51c8dd10d7c658ff7ef9b39166db3a0 100644 (file)
@@ -270,7 +270,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){
 
     /* Login as user, initialize user ACL's */
     $ui= ldap_login_user($username, $_POST["password"]);
-    if ($ui === NULL || $ui == 0){
+    if ($ui === NULL || !$ui ){
       $message= _("Please check the username/password combination.");
       $smarty->assign ('nextfield', 'password');
       gosa_log ("Authentication failed for user \"$username\"");