diff --git a/application/modules/teams/controllers/admin/Index.php b/application/modules/teams/controllers/admin/Index.php index db32cb918..2882e62a5 100644 --- a/application/modules/teams/controllers/admin/Index.php +++ b/application/modules/teams/controllers/admin/Index.php @@ -72,7 +72,7 @@ public function indexAction() } } - if ($this->getRequest()->getPost('saveTeams')) { + if ($this->getRequest()->getPost('saveTeams') && !empty($this->getRequest()->getPost('items'))) { foreach ($this->getRequest()->getPost('items') as $i => $teamId) { $teamsMapper->sort($teamId, $i); } diff --git a/application/modules/teams/views/admin/index/index.php b/application/modules/teams/views/admin/index/index.php index 3a1b5ffe8..5e8c1a09e 100644 --- a/application/modules/teams/views/admin/index/index.php +++ b/application/modules/teams/views/admin/index/index.php @@ -1,16 +1,17 @@