test
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s

This commit is contained in:
Chris 2023-10-30 23:33:22 +01:00
parent 8508f42216
commit 6aed7dd976
2 changed files with 3 additions and 6 deletions

View File

@ -169,10 +169,7 @@ class Model {
if (isset($data[$key]))
$value = $data[$key];
else
{
var_dump($key.' not set');
$value = null;
}
if (is_array($value))
continue;
@ -200,7 +197,7 @@ class Model {
}
if ($required && strlen($value) == 0) {
throw new Exception($this->dbTable . "." . $key . " is required");
throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'");
}
if ($value == null)
continue;

View File

@ -34,8 +34,8 @@ class User extends Model {
$_SESSION['user']->save();
var_dump($_SESSION['user']);
exit();
//var_dump($_SESSION['user']);
//exit();
}
function logout()