X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/blobdiff_plain/152f5e39e0ad8115470ee380e567a3ea31db6f1b..ae8beb8dd5288284acc570a9ad4aa7a98cf1fd9b:/MathCaptcha.class.php diff --git a/MathCaptcha.class.php b/MathCaptcha.class.php index 01d6391..adf1663 100644 --- a/MathCaptcha.class.php +++ b/MathCaptcha.class.php @@ -3,8 +3,8 @@ class MathCaptcha extends SimpleCaptcha { /** Validate a captcha response */ - function keyMatch( $req, $info ) { - return (int)$req->getVal( 'wpCaptchaAnswer' ) == (int)$info['answer']; + function keyMatch( $answer, $info ) { + return (int)$answer == (int)$info['answer']; } /** Produce a nice little form */