From 9090550d241f9f7b3246b24bfd323bd988add749 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 28 Apr 2020 20:18:17 +0200 Subject: listen to brother Stan and clean some things --- app/class/Controlleruser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/Controlleruser.php') diff --git a/app/class/Controlleruser.php b/app/class/Controlleruser.php index 755b491..53cf9b9 100644 --- a/app/class/Controlleruser.php +++ b/app/class/Controlleruser.php @@ -37,9 +37,9 @@ class Controlleruser extends Controller if ($this->user->iseditor()) { $user = $this->usermanager->get($this->user); try { - $user->hydrate($_POST, true); + $user->hydrateexception($_POST); } catch (\Throwable $th) { - Model::sendflashmessage('There was a problem when updating preferences : ' . $th->getMessage(), 'error'); + Model::sendflashmessage('There was a problem when updating preference : ' . $th->getMessage(), 'error'); } if ($_POST['passwordhash']) { $user->hashpassword(); -- cgit v1.2.3