diff --git a/libraries/src/Form/Field/CaptchaField.php b/libraries/src/Form/Field/CaptchaField.php index 45bc06eea712a..1e6927cc9762c 100644 --- a/libraries/src/Form/Field/CaptchaField.php +++ b/libraries/src/Form/Field/CaptchaField.php @@ -116,6 +116,8 @@ public function setup(\SimpleXMLElement $element, $value, $group = null) if ($plugin === 0 || $plugin === '0' || $plugin === '' || $plugin === null) { $this->hidden = true; + + return false; } else { @@ -147,6 +149,7 @@ public function setup(\SimpleXMLElement $element, $value, $group = null) { $this->_captcha = null; \JFactory::getApplication()->enqueueMessage($e->getMessage(), 'error'); + return false; }