This commit is contained in:
William 2022-03-09 13:11:17 +01:00
parent 5fcefa78ee
commit de74589b88

View File

@ -39,8 +39,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST')
$team->setPhone($phone); $team->setPhone($phone);
$team->setParticipants($participants); $team->setParticipants($participants);
$team->setRounds($rounds); $team->setRounds($rounds);
} catch(Throwable $e) { } catch(InvalidArgumentException $e) {
$app->session->flash('Kunne ikke oppdatere lag: Validerings feil ' . $e->getMessage() , 'danger'); $app->session->flash('Kunne ikke oppdatere lag: Validerings feil: ' . $e->getMessage() , 'danger');
$app->redirect('index.php'); $app->redirect('index.php');
} }