diff --git a/src/app/backend/controllers/CustomersController.php b/src/app/backend/controllers/CustomersController.php index 625d2ca..48fc8c3 100644 --- a/src/app/backend/controllers/CustomersController.php +++ b/src/app/backend/controllers/CustomersController.php @@ -80,9 +80,9 @@ class CustomersController extends \Phalcon\Mvc\Controller $data['password'] = $this->common->hashPasswd($data['password']); } - $current_email = $this->models->getCustomers()->getCustomerByEmail($data['email']); + $current_customer = $this->models->getCustomers()->getCustomerByEmail($data['email']); - if( !empty( $data ) && isset($current_email[0])) + if( !empty( $data ) && isset($current_customer[0])) { if( $this->models->getCustomers()->UpdateData( $data, $id ) ) { diff --git a/src/app/backend/views/customers/addEdit.php b/src/app/backend/views/customers/addEdit.php index a35db15..6010514 100644 --- a/src/app/backend/views/customers/addEdit.php +++ b/src/app/backend/views/customers/addEdit.php @@ -42,8 +42,8 @@