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=='') {