From 4419987a968b29b3b0b9633ad27c50c9a2d32f94 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Dec 2005 19:54:35 +0000 Subject: [PATCH] If the key we are looking for in inptu_clean() doesn't exist, then set it to null --- kernel.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel.php b/kernel.php index 80f85f1..e61c459 100644 --- a/kernel.php +++ b/kernel.php @@ -685,7 +685,14 @@ class Shared_Object_Framework */ function input_clean($varname, $type) { - $this->in["$varname"] = $this->clean($this->in["$varname"], $type); + if (isset($this->in["$varname"])) + { + $this->in["$varname"] = $this->clean($this->in["$varname"], $type); + } + else + { + $this->in["$varname"] = null; + } } /** -- 2.22.5