Setting default values if nothing passed.

This commit is contained in:
skeeter 2001-03-21 04:41:20 +00:00
parent 5cdc584f2b
commit e18b447599

View File

@ -58,7 +58,7 @@
{ {
global $phpgw, $phpgw_info; global $phpgw, $phpgw_info;
$this->db = $phpgw->db; $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; $db2 = $this->db;
$account_id = get_account_id($accountid); $account_id = get_account_id($accountid,$this->account_id);
$memberships = $phpgw->accounts->memberships($account_id); $memberships = $phpgw->accounts->memberships($account_id);
$sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and " $sql = "select acl_appname, acl_rights from phpgw_acl where acl_location = 'run' and "
. 'acl_account in '; . 'acl_account in ';