From 822506cec068ce6b9e306103ac641fe64ae787df Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 22 Aug 2004 20:30:12 +0000 Subject: [PATCH] using native adodb functions for quote and db_addslashes: - qstr() save's one extra call compared to the PEAR function quote() - dont need substr( ,1,-1) for db_addslashes --- phpgwapi/inc/class.db.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.db.inc.php b/phpgwapi/inc/class.db.inc.php index d2bc0bf541..9c8c77feed 100644 --- a/phpgwapi/inc/class.db.inc.php +++ b/phpgwapi/inc/class.db.inc.php @@ -280,7 +280,7 @@ return False; } // the substring is needed as the string is already in quotes - return substr($this->Link_ID->quote($str),1,-1); + return $this->Link_ID->addq($str); } /** @@ -975,7 +975,7 @@ case 'timestamp': return $this->Link_ID->DBTimeStamp($value); } - return $this->Link_ID->quote($value); + return $this->Link_ID->qstr($value); } /**