From: Andrew Dolgov Date: Mon, 29 Apr 2013 05:20:30 +0000 (+0400) Subject: otp: display notice if GD is missing X-Git-Tag: 1.7.9~25^2~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a845a3d5e5538fc63312b7f4e2e1475e568ab30b;p=tt-rss.git otp: display notice if GD is missing --- 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.")); + } }