summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TReCaptcha2.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-25 18:01:11 +0100
committerFabio Bas <ctrlaltca@gmail.com>2016-03-25 18:01:11 +0100
commit1dd2c5d5bc5cef8dc2f8406827c33068dfc8f6ee (patch)
treec849c95ba4e9ce90f4ae228bdc0c63f21f87d495 /framework/Web/UI/WebControls/TReCaptcha2.php
parenta3388622287e218beddfa14a47ed677d4307b36b (diff)
TRecaptcha2: small fix
Diffstat (limited to 'framework/Web/UI/WebControls/TReCaptcha2.php')
-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;