diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 27790f3..0ec2cee 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -211,7 +211,7 @@ ); if ($model->load(Yii::$app->request->post())) { - if (empty($model->reCaptcha && $model->reCaptcha == null || $model->reCaptcha == '')) + if (empty($model->reCaptcha) || $model->reCaptcha == null || $model->reCaptcha == '') return [ 'success' => 'false', 'error' => 'You don`t confirm Recaptcha. Unblock JS to this' -- libgit2 0.21.4