aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controlleruser.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Controlleruser.php')
-rw-r--r--app/class/Controlleruser.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/class/Controlleruser.php b/app/class/Controlleruser.php
index 1586679..1f53f76 100644
--- a/app/class/Controlleruser.php
+++ b/app/class/Controlleruser.php
@@ -32,7 +32,11 @@ class Controlleruser extends Controller
{
if($this->user->iseditor()) {
$user = $this->usermanager->get($this->user);
- $user->hydrate($_POST);
+ if ($user->hydrate($_POST)) {
+ Model::sendflashmessage('User preferences have been successfully updated', 'success');
+ } else {
+ Model::sendflashmessage('There was a problem when updating preferences', 'warning');
+ }
if ($_POST['passwordhash']) {
$user->hashpassword();
}