This commit is contained in:
parent
8508f42216
commit
6aed7dd976
@ -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;
|
||||
|
@ -34,8 +34,8 @@ class User extends Model {
|
||||
|
||||
$_SESSION['user']->save();
|
||||
|
||||
var_dump($_SESSION['user']);
|
||||
exit();
|
||||
//var_dump($_SESSION['user']);
|
||||
//exit();
|
||||
}
|
||||
|
||||
function logout()
|
||||
|
Reference in New Issue
Block a user