From a48625a0f67c43ee3481433d25ac316cf4f279fd Mon Sep 17 00:00:00 2001 From: jengo Date: Fri, 9 Mar 2001 15:55:34 +0000 Subject: [PATCH] Fixed PHP warnings on disconnects --- phpgwapi/inc/class.db_mysql.inc.php | 2 +- phpgwapi/inc/class.db_pgsql.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.db_mysql.inc.php b/phpgwapi/inc/class.db_mysql.inc.php index a33b0164ce..7fac3a1723 100644 --- a/phpgwapi/inc/class.db_mysql.inc.php +++ b/phpgwapi/inc/class.db_mysql.inc.php @@ -94,7 +94,7 @@ class db { // This only affects systems not using persistant connections function disconnect() { - return mysql_close($this->Link_ID); + return @mysql_close($this->Link_ID); } function limit($start) diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 36ec0b9caa..25cfac806a 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -76,7 +76,7 @@ class db { // This only affects systems not using persistant connections function disconnect() { - return pg_close($this->Link_ID); + return @pg_close($this->Link_ID); } // I added the line and file section so we can have better error reporting. (jengo)