From c5d89090b3b4f0e99a0efb2f900d5bcc8c078bbd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 11 Dec 2006 02:23:52 +0000 Subject: [PATCH] Use the new BSRegister::GetType() to find DB objects --- Input.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Input.php b/Input.php index 147e24c..759ce2a 100644 --- a/Input.php +++ b/Input.php @@ -212,17 +212,17 @@ class BSInput { if ($this->magicquotes AND !$force) { - if (isset($this->modules[ISSO_DB_LAYER])) + if (BSRegister::GetType('Db')) { - return $this->modules[ISSO_DB_LAYER]->escape_string(str_replace(array("\'", '\"'), array("'", '"'), $str)); + return BSRegister::GetType('Db')->escape_string(str_replace(array("\'", '\"'), array("'", '"'), $str)); } return $str; } else { - if (isset($this->modules[ISSO_DB_LAYER])) + if (BSRegister::GetType('Db')) { - return $this->modules[ISSO_DB_LAYER]->escape_string($str); + return BSRegister::GetType('Db')->escape_string($str); } return addslashes($str); } -- 2.43.5