diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 8bc36720..47f47ae6 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -368,7 +368,7 @@ class Pref_Prefs extends Handler_Protected { print ""; - } else { + } else if (function_exists("imagecreatefromstring")) { print "

".__("You will need a compatible Authenticator to use this. Changing your password would automatically disable OTP.") . "

"; @@ -427,6 +427,10 @@ class Pref_Prefs extends Handler_Protected { print ""; + } else { + + print_notice(__("PHP GD functions are required for OTP support.")); + } }