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