Commit fa71e26e3e719a6d9df6b41aff6f6ccb27c078da
1 parent
9493ba06
controller
Showing
1 changed file
with
1 additions
and
1 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( $name ) && !empty( $email ) ) | |
1261 | + if( !empty( $data['name'] ) && !empty( $data['email'] ) ) | |
1262 | 1262 | { |
1263 | 1263 | if( $this->models->getSubscribe()->addData($data) ) |
1264 | 1264 | { | ... | ... |