From 5a391de7dec787b115713480d35e2e9711707f07 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Wed, 22 Aug 2018 15:11:53 +0300 Subject: [PATCH] Get block to center --- frontend/controllers/SiteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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