From 462165e81ea17263fcc4f736d3210ff32f4da281 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 23:36:56 +0100 Subject: [PATCH] yes --- web/inc/classes/Model.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;