fix bad var name in account add

This commit is contained in:
Miles Lott 2004-01-26 03:26:11 +00:00
parent 0d23f90fd4
commit 82ed6bc041

View File

@ -950,7 +950,7 @@
if(!($accountid = $GLOBALS['phpgw']->accounts->name2id($username))) if(!($accountid = $GLOBALS['phpgw']->accounts->name2id($username)))
{ {
$accountid = $accountid ? $acountid : $GLOBALS['phpgw']->accounts->create(array( $accountid = $accountid ? $accountid : $GLOBALS['phpgw']->accounts->create(array(
'account_type' => $group ? 'u' : 'g', 'account_type' => $group ? 'u' : 'g',
'account_lid' => $username, 'account_lid' => $username,
'account_passwd' => $passwd, 'account_passwd' => $passwd,
@ -963,9 +963,9 @@
} }
if($groupid) if($groupid)
{ {
$this->add_acl('phpgw_group',$groupid,$accountid); $this->add_acl('phpgw_group',(int)$groupid,(int)$accountid);
} }
$this->add_acl('preferences','changepassword',$accountid,(int) $changepw); $this->add_acl('preferences','changepassword',(int)$accountid, (boolean)$changepw);
return $accountid; return $accountid;
} }