forked from extern/egroupware
accountid should be int, so enforce the type
This commit is contained in:
parent
c353fa6469
commit
2f6ad147af
@ -961,11 +961,12 @@
|
|||||||
'account_expires' => -1
|
'account_expires' => -1
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
$accountid = (int)$accountid;
|
||||||
if($groupid)
|
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;
|
return $accountid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user