]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/auth/Auth_db.class.php
Imporoved isTrue function to get rid of PHP warnings.
[timetracker.git] / WEB-INF / lib / auth / Auth_db.class.php
index bdde007a91a08834b39f820691585258be8cad1e..a7ae0d3faeb7659b5873de92a9461287e6a1ad1d 100644 (file)
@@ -57,7 +57,7 @@ class Auth_db extends Auth {
       return array('login'=>$login,'id'=>$val['id']);
     } else {
       // If the OLD_PASSWORDS option is defined - set it.
-      if (isTrue(OLD_PASSWORDS)) {
+      if (isTrue('OLD_PASSWORDS')) {
         $sql = "SET SESSION old_passwords = 1";
         $res = $mdb2->query($sql);
         if (is_a($res, 'PEAR_Error')) {