diff options
-rw-r--r-- | classes/pref/prefs.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 8bc367201..47f47ae68 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -368,7 +368,7 @@ class Pref_Prefs extends Handler_Protected { print "</form>"; - } else { + } else if (function_exists("imagecreatefromstring")) { print "<p>".__("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "</p>"; @@ -427,6 +427,10 @@ class Pref_Prefs extends Handler_Protected { print "</form>"; + } else { + + print_notice(__("PHP GD functions are required for OTP support.")); + } } |