Skip to content

Commit

Permalink
Merge pull request benedmunds#1477 from orionstar/3
Browse files Browse the repository at this point in the history
  • Loading branch information
benedmunds authored Sep 21, 2020
2 parents e5bc1aa + 8e5b06d commit ad0d5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/Ion_auth_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,8 @@ public function update($id, array $data)
{
$this->trigger_events('pre_update_user');

$user = $this->user($id)->row();

$this->db->trans_begin();

if (array_key_exists($this->identity_column, $data) && $this->identity_check($data[$this->identity_column]) && $user->{$this->identity_column} !== $data[$this->identity_column])
Expand Down

0 comments on commit ad0d5cd

Please sign in to comment.