From af91d322a7bdb71b5e1adc7a705c9b30d1b7168d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 28 Dec 2016 21:31:04 +0200 Subject: [PATCH] special_users_id remove bug fix --- src/app/backend/controllers/CustomersController.php | 4 ++-- src/app/backend/views/customers/addEdit.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 @@