mirror of
https://github.com/getgrav/grav.git
synced 2026-03-17 18:10:55 +01:00
Make $user->update() to behave like $user->merge()
This commit is contained in:
@@ -191,16 +191,14 @@ class User extends Data
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace all data
|
||||
*
|
||||
* WARNING: There are no checks! All the data will be replaced.
|
||||
* Update object with data
|
||||
*
|
||||
* @param array $data
|
||||
* @return $this
|
||||
*/
|
||||
public function update(array $data)
|
||||
{
|
||||
$this->items = $data;
|
||||
$this->merge($data);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user