Commit 5a391de7dec787b115713480d35e2e9711707f07
1 parent
b6fdbe25
Get block to center
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
211 | ); | 211 | ); |
212 | if ($model->load(Yii::$app->request->post())) { | 212 | if ($model->load(Yii::$app->request->post())) { |
213 | 213 | ||
214 | - if (empty($model->reCaptcha && $model->reCaptcha == null || $model->reCaptcha == '')) | 214 | + if (empty($model->reCaptcha) || $model->reCaptcha == null || $model->reCaptcha == '') |
215 | return [ | 215 | return [ |
216 | 'success' => 'false', | 216 | 'success' => 'false', |
217 | 'error' => 'You don`t confirm Recaptcha. Unblock JS to this' | 217 | 'error' => 'You don`t confirm Recaptcha. Unblock JS to this' |