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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user