Compare commits

..

2 commits

View file

@ -138,13 +138,9 @@ 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, $changes, true $this -> original_user, $this -> info, true
); );
} }