From 9e1b9f041df20c1a05edbc4019caf36a213bcfe0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Sep 2019 22:31:30 +0200 Subject: [PATCH] * CE-Groups: fix error deleting groups --- admin/inc/class.admin_account.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/admin/inc/class.admin_account.inc.php b/admin/inc/class.admin_account.inc.php index 9443d905c4..4d207a47e4 100644 --- a/admin/inc/class.admin_account.inc.php +++ b/admin/inc/class.admin_account.inc.php @@ -5,9 +5,8 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package admin - * @copyright (c) 2014-16 by Ralf Becker + * @copyright (c) 2014-19 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @version $Id$ */ use EGroupware\Api; @@ -292,7 +291,6 @@ class admin_account } $sel_options = array(); - $readonlys = array(); $preserve = $content; // Get a count of entries owned by the user @@ -333,7 +331,7 @@ class admin_account */ public static function ajax_delete_group($account_id, $data) { - $cmd = new admin_cmd_delete_account(Api\Accounts::id2name(Api\Accounts::id2name($account_id)), null, false, $data['admin_cmd']); + $cmd = new admin_cmd_delete_account(Api\Accounts::id2name(Api\Accounts::id2name($account_id)), null, false, (array)$data['admin_cmd']); $msg = $cmd->run(); Api\Json\Response::get()->call('egw.refresh', $msg, 'admin', $account_id, 'delete');