From 399618a7b64e5287e3509e89e4be66124ce69523 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Thu, 21 Oct 2004 18:13:46 +0000 Subject: [PATCH] make clone 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 400be9ec32..92bf1952ad 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1243,9 +1243,11 @@ /** * clone function for php4, use as $new_obj = clone($old_obj); */ + eval(' function clone($obj) { return $obj; } + '); } ?>