From 28f22fab5c952848d01595fe2da9c631132d0d40 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 12 Feb 2005 14:38:42 +0000 Subject: [PATCH] fix for php5 --- phpgwapi/inc/class.acl.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 6ce042b3d4..c63bdb5b6c 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -61,7 +61,7 @@ */ function acl($account_id = '') { - copyobj($GLOBALS['phpgw']->db,$this->db); + $this->db = clone($GLOBALS['phpgw']->db); if ((int)$this->account_id != (int)$account_id) { $this->account_id = get_account_id((int)$account_id,@$GLOBALS['phpgw_info']['user']['account_id']); @@ -653,7 +653,7 @@ $account_id = get_account_id($accountid,$this->account_id); $cache_accountid[$accountid] = $account_id; } - $db2 = $this->db; + $db2 = clone($this->db); $memberships = $GLOBALS['phpgw']->accounts->membership($account_id); $sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and " . 'acl_account in '; @@ -693,7 +693,7 @@ */ function get_grants($app='') { - $db2 = $this->db; + $db2 = clone($this->db); if ($app=='') {