From 1dd2c5d5bc5cef8dc2f8406827c33068dfc8f6ee Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 25 Mar 2016 18:01:11 +0100 Subject: TRecaptcha2: small fix --- framework/Web/UI/WebControls/TReCaptcha2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TReCaptcha2.php b/framework/Web/UI/WebControls/TReCaptcha2.php index ed3f9871..a4a9e834 100644 --- a/framework/Web/UI/WebControls/TReCaptcha2.php +++ b/framework/Web/UI/WebControls/TReCaptcha2.php @@ -285,7 +285,8 @@ class TReCaptcha2 extends TActivePanel implements ICallbackEventHandler, IValida } public function validate() { - if ((is_null($this->getValidationPropertyValue())) || (empty($this->getValidationPropertyValue()))) + $value = $this->getValidationPropertyValue(); + if($value === null || empty($value)) return false; return true; -- cgit v1.2.3