From 2f6ad147af6babb38585c5bd7160fc5d01eb90ef Mon Sep 17 00:00:00 2001 From: shrykedude Date: Mon, 26 Jan 2004 09:21:47 +0000 Subject: [PATCH] accountid should be int, so enforce the type --- phpgwapi/inc/class.setup.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.setup.inc.php b/phpgwapi/inc/class.setup.inc.php index a1b8335e9b..c75d708479 100644 --- a/phpgwapi/inc/class.setup.inc.php +++ b/phpgwapi/inc/class.setup.inc.php @@ -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; }