Skip to content

Commit

Permalink
Merge pull request bcit-ci#103 from pixeloution/2
Browse files Browse the repository at this point in the history
Fix update method so all columns can be updated
  • Loading branch information
benedmunds committed Sep 28, 2011
2 parents 66db66f + 2765d4c commit 96f9231
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/ion_auth_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -999,11 +999,11 @@ public function update($id, array $data)
{
$data['password'] = $this->hash_password($data['password'], $user->salt);
}
}

$this->trigger_events('extra_where');
$this->trigger_events('extra_where');
$this->db->update($this->tables['users'], $data, array('id' => $user->id));

$this->db->update($this->tables['users'], $data, array('id' => $user->id));
}

if ($this->db->trans_status() === FALSE)
{
Expand Down

0 comments on commit 96f9231

Please sign in to comment.