Send intval of account_id to accounts class so that get_account_id will work

as expected
This commit is contained in:
Miles Lott 2001-09-02 13:51:24 +00:00
parent e5585d24b6
commit 4004b60c84

View File

@ -223,7 +223,7 @@
$t->parse('password_fields','form_logininfo',True);
$account = CreateObject('phpgwapi.accounts',$GLOBALS['HTTP_GET_VARS']['account_id']);
$account = CreateObject('phpgwapi.accounts',intval($GLOBALS['HTTP_GET_VARS']['account_id']));
$userData = $account->read_repository();
$var['account_lid'] = $userData['account_lid'];
@ -382,7 +382,7 @@
{
if($_account_id)
{
$account = CreateObject('phpgwapi.accounts',$_account_id);
$account = CreateObject('phpgwapi.accounts',intval($_account_id));
$userData = $account->read_repository();
$userGroups = $account->membership($_account_id);
}
@ -714,7 +714,7 @@
$apps = CreateObject('phpgwapi.applications',intval($account_id));
$db_perms = $apps->read_account_specific();
$accounts = CreateObject('phpgwapi.accounts',$account_id);
$accounts = CreateObject('phpgwapi.accounts',intval($account_id));
$account_list = $accounts->get_list('accounts');
$account_num = count($account_list);