From 4a76b1ce819d81a89c1ee4d1cf4c7bbf5b96b4bc Mon Sep 17 00:00:00 2001 From: William Date: Wed, 16 Mar 2022 13:46:30 +0100 Subject: [PATCH] Commit --- app/view/pages/race/teamtable/edit/update.php | 6 ------ public/race/teamtable/edit/update.php | 2 -- 2 files changed, 8 deletions(-) diff --git a/app/view/pages/race/teamtable/edit/update.php b/app/view/pages/race/teamtable/edit/update.php index 6384653..d70d6c3 100644 --- a/app/view/pages/race/teamtable/edit/update.php +++ b/app/view/pages/race/teamtable/edit/update.php @@ -37,12 +37,6 @@
- - -
- -
-
Avbryt ] diff --git a/public/race/teamtable/edit/update.php b/public/race/teamtable/edit/update.php index ed6847a..f721290 100644 --- a/public/race/teamtable/edit/update.php +++ b/public/race/teamtable/edit/update.php @@ -29,7 +29,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') $leader = filter_input(INPUT_POST, 'leader'); $phone = filter_input(INPUT_POST, 'phone', FILTER_VALIDATE_INT); $participants = filter_input(INPUT_POST, 'participants', FILTER_VALIDATE_INT); - $rounds = filter_input(INPUT_POST, 'rounds', FILTER_VALIDATE_INT); $team = new Team; try { @@ -39,7 +38,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') $team->setLeader($leader); $team->setPhone($phone); $team->setParticipants($participants); - $team->setRounds($rounds); } catch(InvalidArgumentException $e) { $app->session->flash('Kunne ikke oppdatere lag: Validerings feil: ' . $e->getMessage() , 'danger'); $app->redirect('index.php');