From 8f4675ba93dbabbb9d478dcae4b2ea7365581cf6 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 22:57:31 +0100 Subject: [PATCH] heavy debug mode --- web/inc/classes/Model.class.php | 2 ++ web/pages/profile/controller.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/inc/classes/Model.class.php b/web/inc/classes/Model.class.php index b435223..8f4a711 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -126,6 +126,8 @@ class Model { { $value = $GLOBALS['redis']->hget($this->dbTable.':'.$this->id,$key); + var_dump("[".$this->dbTable.':'.$this->id."] Loading from DB $key: '$value'"); + if($value!==NULL) //we'll leave null values alone switch($this->dbFields[$key]['type']) { diff --git a/web/pages/profile/controller.php b/web/pages/profile/controller.php index 5e7ba46..c8ea630 100644 --- a/web/pages/profile/controller.php +++ b/web/pages/profile/controller.php @@ -10,7 +10,6 @@ class Profile extends Page { function edit() { - var_dump($_SESSION['user']->active); if($_REQUEST['submit']=='true') { $error = false;