diff --git a/web/inc/classes/Model.class.php b/web/inc/classes/Model.class.php index 2004426..21e7926 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -197,7 +197,7 @@ class Model { } if ($required && strlen($value) == 0) { - throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'"); + throw new Exception($this->dbTable . "." . $key . " is required"); } if ($value == null) continue; diff --git a/web/pages/profile/controller.php b/web/pages/profile/controller.php index c8ea630..81a6ace 100644 --- a/web/pages/profile/controller.php +++ b/web/pages/profile/controller.php @@ -14,6 +14,7 @@ class Profile extends Page { { $error = false; + $_SESSION['user']->load(); $_SESSION['user']->data['firstname'] = trim($_REQUEST['firstname']); $_SESSION['user']->data['lastname'] = trim($_REQUEST['lastname']); //$_SESSION['user']->data['email'] = $_REQUEST['email'];