This commit is contained in:
parent
f54717c798
commit
cca9797f4e
@ -197,7 +197,7 @@ class Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($required && strlen($value) == 0) {
|
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)
|
if ($value == null)
|
||||||
continue;
|
continue;
|
||||||
|
@ -14,6 +14,7 @@ class Profile extends Page {
|
|||||||
{
|
{
|
||||||
$error = false;
|
$error = false;
|
||||||
|
|
||||||
|
$_SESSION['user']->load();
|
||||||
$_SESSION['user']->data['firstname'] = trim($_REQUEST['firstname']);
|
$_SESSION['user']->data['firstname'] = trim($_REQUEST['firstname']);
|
||||||
$_SESSION['user']->data['lastname'] = trim($_REQUEST['lastname']);
|
$_SESSION['user']->data['lastname'] = trim($_REQUEST['lastname']);
|
||||||
//$_SESSION['user']->data['email'] = $_REQUEST['email'];
|
//$_SESSION['user']->data['email'] = $_REQUEST['email'];
|
||||||
|
Reference in New Issue
Block a user