Commit b6fdbe2591560f221c59207a7af297eb95b5ebf1
1 parent
ae05bf28
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' |