From a0cfcc38e4ad6493379f5de54ef6510b702b02af Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 21 Oct 2004 18:12:11 +0000 Subject: [PATCH] make the clone hack working with PHP5 too --- phpgwapi/inc/common_functions.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index fb1d81e3d5..1c8078ca78 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1247,9 +1247,11 @@ /** * clone function for php4, use as $new_obj = clone($old_obj); */ + eval(' function clone($obj) { return $obj; } + '); } ?>