From 1835f145a8f4d450e33b15faf7d50437731a8793 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Sep 2012 02:52:49 +0400 Subject: only enable OTPHP on php version 5.3+ --- classes/auth/internal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/auth') diff --git a/classes/auth/internal.php b/classes/auth/internal.php index 37014ce47..92c19eb64 100644 --- a/classes/auth/internal.php +++ b/classes/auth/internal.php @@ -9,7 +9,7 @@ class Auth_Internal extends Auth_Base { $otp = db_escape_string($_REQUEST["otp"]); if (get_schema_version($this->link) > 96) { - if (!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'"); -- cgit v1.2.3