Example #1
0
 public function update($get, $post)
 {
     if ($post) {
         if ($post['password']) {
             $post['password'] = md5($post['password']);
         } else {
             unset($post['password']);
         }
     }
     return parent::update($get, $post);
 }