From f54717c79880b18b35af40979a3628475b495736 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 23:48:49 +0100 Subject: [PATCH] reverted.. not today --- web/inc/classes/Model.class.php | 9 --------- web/models/User.model.php | 5 ----- 2 files changed, 14 deletions(-) diff --git a/web/inc/classes/Model.class.php b/web/inc/classes/Model.class.php index ee70a51..2004426 100644 --- a/web/inc/classes/Model.class.php +++ b/web/inc/classes/Model.class.php @@ -159,9 +159,6 @@ class Model { $data = $this->data; - var_dump($data['active']); - var_dump($this->data['active']); - foreach ($this->dbFields as $key => $options) { $type = null; $required = false; @@ -169,9 +166,6 @@ class Model { if(in_array('autoupdate',$options)) $this->data[$key] = NULL; - if($key=='active') - var_dump("before: $key is set to '".$data[$key]."'"); - if (isset($data[$key])) $value = $data[$key]; else @@ -203,7 +197,6 @@ class Model { } if ($required && strlen($value) == 0) { - var_dump($value); throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'"); } if ($value == null) @@ -247,8 +240,6 @@ class Model { throw new Exception("$type validation failed"); } } - if($key=='active') - var_dump("after: $key is set to '".$data[$key]."'"); return true; } diff --git a/web/models/User.model.php b/web/models/User.model.php index 39fc9e0..b53d5cc 100644 --- a/web/models/User.model.php +++ b/web/models/User.model.php @@ -30,12 +30,7 @@ class User extends Model { $_SESSION['user'] = $this; $_SESSION['userid'] = $this->id; - var_dump("before save: ".$_SESSION['user']->active); - $_SESSION['user']->save(); - - var_dump($_SESSION['user']->active); - exit("bye"); } function logout()