diff options
author | Andrew Dolgov <[email protected]> | 2013-04-29 09:20:30 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-29 09:20:30 +0400 |
commit | a845a3d5e5538fc63312b7f4e2e1475e568ab30b (patch) | |
tree | 7011fa73d321c27717ef04e960ec76c18fe8c2ef /classes/pref/prefs.php | |
parent | b8c9341afafddffa930b93b72127958fae872100 (diff) |
otp: display notice if GD is missing
Diffstat (limited to 'classes/pref/prefs.php')
-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.")); + } } |