summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/UI/WebControls/TReCaptcha2.php3
1 files changed, 2 insertions, 1 deletions
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;