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
@ -91,11 +91,20 @@ class db {
|
|||||||
return $this->Link_ID;
|
return $this->Link_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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);
|
if($this->Link_ID <> 0)
|
||||||
}
|
{
|
||||||
|
@mysql_close($this->Link_ID);
|
||||||
|
$this->Link_ID = 0;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function limit($start)
|
function limit($start)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user