From 045beddf0eab55fe0cf94c43f9d146a1f3ad1e45 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 25 Jan 2009 06:30:01 -0500 Subject: [PATCH] Fixed: FS#474 - serial not updated for domain after changes --- server/lib/classes/db_mysql.inc.php | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php index f251532..828bb43 100644 --- a/server/lib/classes/db_mysql.inc.php +++ b/server/lib/classes/db_mysql.inc.php @@ -168,7 +168,7 @@ return addslashes($formfield); } - return mysql_real_escape_string($formfield); + return mysql_real_escape_string($formfield, $this->linkId); } // Check der variablen @@ -223,14 +223,24 @@ } } - function closeConn() { + public function closeConn() + { + if($this->linkId) + { + mysql_close($this->linkId); + return true; + } else { return false; } + } - } - - function freeResult() { - - - } + public function freeResult($query) + { + if(mysql_free_result($query)) + { + return true; + } else { + return false; + } + } function delete() { -- Gitblit v1.9.1