mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix PHP Fatal of using deprecated, and therefore not existing in Api, get_list method of accounts object
This commit is contained in:
parent
cedab0ab00
commit
d17701345d
@ -286,8 +286,7 @@ class admin_categories
|
||||
$content['owner'] = 0;
|
||||
}
|
||||
$sel_options['owner'][0] = lang('All users');
|
||||
$accs = $GLOBALS['egw']->accounts->get_list('groups');
|
||||
foreach($accs as $acc)
|
||||
foreach($GLOBALS['egw']->accounts->search(array('type' => 'groups')) as $acc)
|
||||
{
|
||||
if ($acc['account_type'] == 'g')
|
||||
{
|
||||
@ -588,12 +587,11 @@ class admin_categories
|
||||
);
|
||||
|
||||
$sel_options['owner'][0] = lang('All users');
|
||||
$accs = $GLOBALS['egw']->accounts->get_list('groups');
|
||||
foreach($accs as $acc)
|
||||
foreach($GLOBALS['egw']->accounts->search(array('type' => 'groups')) as $acc)
|
||||
{
|
||||
if ($acc['account_type'] == 'g')
|
||||
{
|
||||
$sel_options['owner'][$acc['account_id']] = ExecMethod2('etemplate.select_widget.accountInfo',$acc['account_id'],$acc);
|
||||
$sel_options['owner'][$acc['account_id']] = Etemplate\Widget\Select::accountInfo($acc['account_id'], $acc);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user