From e18b44759956105986431165b8c60060d81a6855 Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 21 Mar 2001 04:41:20 +0000 Subject: [PATCH] Setting default values if nothing passed. --- phpgwapi/inc/class.acl.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 48ea20532a..c16346af57 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -58,7 +58,7 @@ { global $phpgw, $phpgw_info; $this->db = $phpgw->db; - $this->account_id = get_account_id($account_id); + $this->account_id = get_account_id($account_id,$phpgw_info['user']['account_id']); } /**************************************************************************\ @@ -465,7 +465,7 @@ It should use the values in the $this->data $db2 = $this->db; - $account_id = get_account_id($accountid); + $account_id = get_account_id($accountid,$this->account_id); $memberships = $phpgw->accounts->memberships($account_id); $sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and " . 'acl_account in ';