forked from extern/egroupware
Fixed PHP warnings on disconnects
This commit is contained in:
parent
c32a28431d
commit
a48625a0f6
@ -94,7 +94,7 @@ class db {
|
|||||||
// This only affects systems not using persistant connections
|
// This only affects systems not using persistant connections
|
||||||
function disconnect()
|
function disconnect()
|
||||||
{
|
{
|
||||||
return mysql_close($this->Link_ID);
|
return @mysql_close($this->Link_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
function limit($start)
|
function limit($start)
|
||||||
|
@ -76,7 +76,7 @@ class db {
|
|||||||
// This only affects systems not using persistant connections
|
// This only affects systems not using persistant connections
|
||||||
function disconnect()
|
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)
|
// I added the line and file section so we can have better error reporting. (jengo)
|
||||||
|
Loading…
Reference in New Issue
Block a user