diff --git a/web/inc/classes/Model.class.php b/web/inc/classes/Model.class.php index 5dadd70..de763de 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -190,7 +190,7 @@ class Model { $this->data[$key] = $value; } - if($options['default']!==null && $newgen === true && !$value) + if($options['default']!==null && $newgen === true && !isset($value)) { $value = $options['default']; $this->data[$key] = $value;