This commit is contained in:
parent
b4ce0c89ed
commit
462165e81e
@ -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;
|
||||
|
Reference in New Issue
Block a user