From bfdc1ca96602105106f7d54d919eb9deef78c6d7 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 17 Aug 2018 14:53:40 -0600 Subject: [PATCH] Admin - Changes for edit group to only log changed fields --- admin/inc/class.admin_cmd_edit_group.inc.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/admin/inc/class.admin_cmd_edit_group.inc.php b/admin/inc/class.admin_cmd_edit_group.inc.php index 3f2dd7a551..747de47c2d 100644 --- a/admin/inc/class.admin_cmd_edit_group.inc.php +++ b/admin/inc/class.admin_cmd_edit_group.inc.php @@ -56,14 +56,11 @@ class admin_cmd_edit_group extends admin_cmd { $data['account_id'] = admin_cmd::parse_account($this->account,false); } - else - { - $data += array( - 'account_type' => 'g', - 'account_status' => 'A', // not used, but so we do the same thing as the web-interface - 'account_expires' => -1, - ); - } + $data += array( + 'account_type' => 'g', + 'account_status' => 'A', // not used, but so we do the same thing as the web-interface + 'account_expires' => -1, + ); if (!$data['account_lid'] && (!$this->account || !is_null($data['account_lid']))) { throw new Api\Exception\WrongUserinput(lang('You must enter a group name.'),9);