Commit 2228b4745bfffb932caffe1bfc52b9b7d878ebaf

Authored by Alex Savenko
1 parent 17725be7

flash "Заполните поле Email"

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/app/frontend/controllers/MenuController.php
... ... @@ -1258,7 +1258,7 @@ class MenuController extends \controllers\ControllerBase
1258 1258 $email = $this->request->getPost('email', 'string', NULL );
1259 1259 $data['email'] = filter_var( $email, FILTER_VALIDATE_EMAIL );
1260 1260  
1261   - if( !empty( $data['name'] ) && !empty( $data['email'] ) )
  1261 + if( !empty( $data['email'] ) )
1262 1262 {
1263 1263 $check = $this->models->getSubscribe()->getOneDataByEmail($data['email']);
1264 1264 if (!empty($check)) {
... ... @@ -1279,7 +1279,7 @@ class MenuController extends \controllers\ControllerBase
1279 1279 }
1280 1280 else {
1281 1281  
1282   - $this->flash->error("Заполните все поля");
  1282 + $this->flash->error("Заполните поле Email");
1283 1283  
1284 1284 }
1285 1285 }
... ...