]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/auth/Auth_db.class.php
Improved isTrue() function and its usage to streamline code.
[timetracker.git] / WEB-INF / lib / auth / Auth_db.class.php
index 937ad3cc9286adcb1a8d5667ef50ee3b58764924..c380330c0e7a33d63f2f1eeda0084b4a011aedf7 100644 (file)
@@ -58,7 +58,7 @@ class Auth_db extends Auth {
     } else {
 
       // If the OLD_PASSWORDS option is defined - set it.
-      if (defined('OLD_PASSWORDS') && isTrue(OLD_PASSWORDS)) {
+      if (isTrue(OLD_PASSWORDS)) {
         $sql = "SET SESSION old_passwords = 1";
         $res = $mdb2->query($sql);
         if (is_a($res, 'PEAR_Error')) {