mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:39 +01:00
Send intval of account_id to accounts class so that get_account_id will work
as expected
This commit is contained in:
parent
e5585d24b6
commit
4004b60c84
@ -223,7 +223,7 @@
|
|||||||
|
|
||||||
$t->parse('password_fields','form_logininfo',True);
|
$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();
|
$userData = $account->read_repository();
|
||||||
|
|
||||||
$var['account_lid'] = $userData['account_lid'];
|
$var['account_lid'] = $userData['account_lid'];
|
||||||
@ -382,7 +382,7 @@
|
|||||||
{
|
{
|
||||||
if($_account_id)
|
if($_account_id)
|
||||||
{
|
{
|
||||||
$account = CreateObject('phpgwapi.accounts',$_account_id);
|
$account = CreateObject('phpgwapi.accounts',intval($_account_id));
|
||||||
$userData = $account->read_repository();
|
$userData = $account->read_repository();
|
||||||
$userGroups = $account->membership($_account_id);
|
$userGroups = $account->membership($_account_id);
|
||||||
}
|
}
|
||||||
@ -714,7 +714,7 @@
|
|||||||
$apps = CreateObject('phpgwapi.applications',intval($account_id));
|
$apps = CreateObject('phpgwapi.applications',intval($account_id));
|
||||||
$db_perms = $apps->read_account_specific();
|
$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_list = $accounts->get_list('accounts');
|
||||||
$account_num = count($account_list);
|
$account_num = count($account_list);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user