mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 01:48:01 +02:00
Fix for persistent connections and disconnect()
This commit is contained in:
parent
36becd4638
commit
486e412862
@ -94,7 +94,16 @@ class db {
|
||||
// This only affects systems not using persistant connections
|
||||
function disconnect()
|
||||
{
|
||||
return @mysql_close($this->Link_ID);
|
||||
if($this->Link_ID <> 0)
|
||||
{
|
||||
@mysql_close($this->Link_ID);
|
||||
$this->Link_ID = 0;
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function limit($start)
|
||||
|
Loading…
x
Reference in New Issue
Block a user