diff --git a/application/admin/controller/user/User.php b/application/admin/controller/user/User.php index 6908ad67da02c96222cd9a326e7dab47250fae14..7090c36d893942efde17b2481e7bd0cc5893ea97 100644 --- a/application/admin/controller/user/User.php +++ b/application/admin/controller/user/User.php @@ -93,12 +93,15 @@ class User extends Backend $this->error(__("Invalid parameters")); } $ids = $ids ? $ids : $this->request->post("ids"); - $row = $this->model->get($ids); - $this->modelValidate = true; - if (!$row) { - $this->error(__('No Results were found')); + $idArray = explode(',', $ids); + foreach ($idArray as $id) { + $row = $this->model->get($id); + $this->modelValidate = true; + if (!$row) { + $this->error(__('No Results were found')); + } + Auth::instance()->delete($row['id']); } - Auth::instance()->delete($row['id']); $this->success(); }