diff --git a/system/src/Grav/Common/User/User.php b/system/src/Grav/Common/User/User.php index 715495041..6b8d717ad 100644 --- a/system/src/Grav/Common/User/User.php +++ b/system/src/Grav/Common/User/User.php @@ -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; }