accountid should be int, so enforce the type

This commit is contained in:
shrykedude 2004-01-26 09:21:47 +00:00
parent c353fa6469
commit 2f6ad147af

View File

@ -961,11 +961,12 @@
'account_expires' => -1
));
}
$accountid = (int)$accountid;
if($groupid)
{
$this->add_acl('phpgw_group',(int)$groupid,(int)$accountid);
$this->add_acl('phpgw_group',(int)$groupid,$accountid);
}
$this->add_acl('preferences','changepassword',(int)$accountid, (int)$changepw);
$this->add_acl('preferences','changepassword',$accountid,(int)$changepw);
return $accountid;
}