Fixed PHP warnings on disconnects

This commit is contained in:
jengo 2001-03-09 15:55:34 +00:00
parent c32a28431d
commit a48625a0f6
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)