summaryrefslogtreecommitdiff
path: root/classes/pref/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-14 02:52:49 +0400
committerAndrew Dolgov <[email protected]>2012-09-14 02:52:49 +0400
commit1835f145a8f4d450e33b15faf7d50437731a8793 (patch)
treebf02779a1f7c13b029807e87dffbe35fa72f5743 /classes/pref/prefs.php
parent7ac3f735e1e5b7474e19bd55f1d25abe052b8aaa (diff)
only enable OTPHP on php version 5.3+
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r--classes/pref/prefs.php2
1 files changed, 1 insertions, 1 deletions
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 "</form>";
- if ($_SESSION["auth_module"] == "internal") {
+ if (version_compare(PHP_VERSION, '5.3.0') >= 0 && $_SESSION["auth_module"] == "internal") {
print "<h2>" . __("One time passwords / Authenticator") . "</h2>";