reverted.. not today
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s
This commit is contained in:
parent
eb50f9f41c
commit
f54717c798
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user