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