Commit 9a45e9933349649dbb917060bcef7eff3bf5bc5b
1 parent
e149dd80
customer update
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/backend/controllers/CustomersController.php
@@ -83,7 +83,7 @@ class CustomersController extends \Phalcon\Mvc\Controller | @@ -83,7 +83,7 @@ class CustomersController extends \Phalcon\Mvc\Controller | ||
83 | $current_email = $this->models->getCustomers()->getCustomerByEmail($data['email']); | 83 | $current_email = $this->models->getCustomers()->getCustomerByEmail($data['email']); |
84 | $this->flash->error(var_dump($current_email)); | 84 | $this->flash->error(var_dump($current_email)); |
85 | 85 | ||
86 | - if( !empty( $data ) && !isset($current_email[0])) | 86 | + if( !empty( $data ) && isset($current_email[0])) |
87 | { | 87 | { |
88 | if( $this->models->getCustomers()->UpdateData( $data, $id ) ) | 88 | if( $this->models->getCustomers()->UpdateData( $data, $id ) ) |
89 | { | 89 | { |