Hide deprecated warnings in CAPTCHA script
This commit is contained in:
parent
e0bddde850
commit
2f357d6418
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@
|
|||
|
||||
session_start();
|
||||
putenv('GDFONTPATH=' . realpath(dirname(__FILE__)) . '/fonts/');
|
||||
|
||||
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
|
||||
|
||||
$captcha = new SimpleCaptcha();
|
||||
$captcha->CreateImage();
|
||||
|
||||
|
|
Loading…
Reference in a new issue