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/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/pref') diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index e9f420774..f4a663dbd 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -258,7 +258,7 @@ class Pref_Prefs extends Handler_Protected { print ""; - if ($_SESSION["auth_module"] == "internal") { + if (version_compare(PHP_VERSION, '5.3.0') >= 0 && $_SESSION["auth_module"] == "internal") { print "

" . __("One time passwords / Authenticator") . "

"; -- cgit v1.2.3