Code

Updated Copy & Paste for users
[gosa.git] / html / index.php
index e911823c56da99f972e0503674f209e4ed44361e..7977dfab03cb46087fa67931475669ce426df3d3 100644 (file)
@@ -262,7 +262,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');
       new log("security","login","",array(),"Authentication failed for user \"$username\"") ;