From d17701345d8a1683b9f8e69ef42331b81f91f879 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 6 May 2016 07:38:23 +0000 Subject: [PATCH] fix PHP Fatal of using deprecated, and therefore not existing in Api, get_list method of accounts object --- admin/inc/class.admin_categories.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index 9bd48c6157..0bedffb7e8 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -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); } }