From b6fdbe2591560f221c59207a7af297eb95b5ebf1 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Wed, 22 Aug 2018 15:10:36 +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 2031a38..27790f3 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