mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-01 10:59:35 +01:00
added clone function for php4, use as $db = clone($this->db);
This commit is contained in:
parent
614d56fd6f
commit
ec9361225a
@ -890,9 +890,7 @@
|
|||||||
{
|
{
|
||||||
if(floor(phpversion()) > 4)
|
if(floor(phpversion()) > 4)
|
||||||
{
|
{
|
||||||
// $b = $a->__clone();
|
$b = clone($a);
|
||||||
// $b = clone $a;
|
|
||||||
$b = $a;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1239,4 +1237,15 @@
|
|||||||
_check_script_tag($GLOBALS[$where],$where);
|
_check_script_tag($GLOBALS[$where],$where);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(floor(phpversion()) <= 4)
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* clone function for php4, use as $new_obj = clone($old_obj);
|
||||||
|
*/
|
||||||
|
function clone($obj)
|
||||||
|
{
|
||||||
|
return $obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user