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 214 SET
215 215 name = :name,
216 216 email = :email,
217   - passwd = :password,
  217 + '.(!empty($data['password']) ? 'passwd = :password,' : '' ).'
218 218 birth_date = :birth_date,
219 219 phone = :phone,
220 220 city = :city,
... ...