reverted.. not today
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:48:49 +01:00
parent eb50f9f41c
commit f54717c798
2 changed files with 0 additions and 14 deletions

View File

@ -159,9 +159,6 @@ class Model {
$data = $this->data;
var_dump($data['active']);
var_dump($this->data['active']);
foreach ($this->dbFields as $key => $options) {
$type = null;
$required = false;
@ -169,9 +166,6 @@ class Model {
if(in_array('autoupdate',$options))
$this->data[$key] = NULL;
if($key=='active')
var_dump("before: $key is set to '".$data[$key]."'");
if (isset($data[$key]))
$value = $data[$key];
else
@ -203,7 +197,6 @@ class Model {
}
if ($required && strlen($value) == 0) {
var_dump($value);
throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'");
}
if ($value == null)
@ -247,8 +240,6 @@ class Model {
throw new Exception("$type validation failed");
}
}
if($key=='active')
var_dump("after: $key is set to '".$data[$key]."'");
return true;
}

View File

@ -30,12 +30,7 @@ class User extends Model {
$_SESSION['user'] = $this;
$_SESSION['userid'] = $this->id;
var_dump("before save: ".$_SESSION['user']->active);
$_SESSION['user']->save();
var_dump($_SESSION['user']->active);
exit("bye");
}
function logout()