From eb50f9f41c3b944866c84f943832ac1d52a045da Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 23:45:46 +0100 Subject: [PATCH] after --- 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 088595d..ee70a51 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -170,7 +170,7 @@ class Model { $this->data[$key] = NULL; if($key=='active') - var_dump("$key is set to '".$data[$key]."'"); + var_dump("before: $key is set to '".$data[$key]."'"); if (isset($data[$key])) $value = $data[$key]; @@ -247,6 +247,8 @@ class Model { throw new Exception("$type validation failed"); } } + if($key=='active') + var_dump("after: $key is set to '".$data[$key]."'"); return true; }