This commit is contained in:
Antonio Ramirez
2018-02-08 08:23:21 +01:00
committed by GitHub
parent 46b8b0ab0d
commit d5b7c4ac5a

View File

@ -54,7 +54,7 @@ class ReCaptchaWidget extends InputWidget
*/ */
public function init() public function init()
{ {
if (Yii::$app->get('recaptcha')) { if (!Yii::$app->get('recaptcha')) {
throw new InvalidConfigException(Yii::t('usuario', 'The "recaptcha" component must be configured.')); throw new InvalidConfigException(Yii::t('usuario', 'The "recaptcha" component must be configured.'));
} }