Commit ed27c2af442f47a863635c434462aec8bdf73f98

Authored by Alex Savenko
1 parent 07e4c8e1

user update

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/lib/models/customers.php
@@ -214,7 +214,7 @@ class customers extends \db @@ -214,7 +214,7 @@ class customers extends \db
214 SET 214 SET
215 name = :name, 215 name = :name,
216 email = :email, 216 email = :email,
217 - passwd = :password, 217 + '.(!empty($data['password']) ? 'passwd = :password,' : '' ).'
218 birth_date = :birth_date, 218 birth_date = :birth_date,
219 phone = :phone, 219 phone = :phone,
220 city = :city, 220 city = :city,