]> git.wh0rd.org Git - tt-rss.git/commitdiff
auth internal: fix otp check clause
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Sep 2012 22:54:32 +0000 (02:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Sep 2012 22:54:32 +0000 (02:54 +0400)
classes/auth/internal.php

index 92c19eb64bf89176afee3a62828616f8b2ec0f31..8ae762b8ab27e8c84e10157b915958ab1dd33f80 100644 (file)
@@ -9,7 +9,7 @@ class Auth_Internal extends Auth_Base {
                $otp = db_escape_string($_REQUEST["otp"]);
 
                if (get_schema_version($this->link) > 96) {
-                       if (version_compare(PHP_VERSION, '5.3.0') >= 0 && !defined('AUTH_DISABLE_OTP') || !AUTH_DISABLE_OTP) {
+                       if (version_compare(PHP_VERSION, '5.3.0') >= 0 && (!defined('AUTH_DISABLE_OTP') || !AUTH_DISABLE_OTP)) {
                                $result = db_query($this->link, "SELECT otp_enabled,salt FROM ttrss_users WHERE
                                        login = '$login'");