diff --git a/web/inc/classes/Model.class.php b/web/inc/classes/Model.class.php index de763de..4829f29 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -166,6 +166,8 @@ class Model { if(in_array('autoupdate',$options)) $this->data[$key] = NULL; + var_dump("$key is set to ".$this->data[$key]); + if (isset($data[$key])) $value = $data[$key]; else @@ -190,7 +192,7 @@ class Model { $this->data[$key] = $value; } - if($options['default']!==null && $newgen === true && !isset($value)) + if($options['default']!==null && $newgen === true && $value===null) { $value = $options['default']; $this->data[$key] = $value;