Compare commits
2 commits
78144a4dfc
...
951c6acfcb
Author | SHA1 | Date | |
---|---|---|---|
|
951c6acfcb | ||
|
8b4206579c |
1 changed files with 5 additions and 1 deletions
|
@ -138,9 +138,13 @@ class User {
|
||||||
Log::debug("%s->save(): no change to save", $this);
|
Log::debug("%s->save(): no change to save", $this);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
$changes = [];
|
||||||
|
foreach ($this->info as $attr => $value)
|
||||||
|
if ($this->original_user->$attr != $value)
|
||||||
|
$changes[$attr] = $value;
|
||||||
return call_user_func(
|
return call_user_func(
|
||||||
array($this -> backend, 'update_user'),
|
array($this -> backend, 'update_user'),
|
||||||
$this -> original_user, $this -> info, true
|
$this -> original_user, $changes, true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue