diff --git a/src/app/backend/controllers/CustomersController.php b/src/app/backend/controllers/CustomersController.php index 1f87080..71df105 100644 --- a/src/app/backend/controllers/CustomersController.php +++ b/src/app/backend/controllers/CustomersController.php @@ -81,7 +81,7 @@ class CustomersController extends \Phalcon\Mvc\Controller } - if( !empty( $data ) && !isset($this->models->getCustomers()->getCustomerByEmail($data['email'])['0']) ) + if( !isset($this->models->getCustomers()->getCustomerByEmail($data['email'])['0']) ) { if( $this->models->getCustomers()->UpdateData( $data, $id ) ) { -- libgit2 0.21.4