From de74589b88f96568bfb83892643d07d5678c7ffc Mon Sep 17 00:00:00 2001 From: William Date: Wed, 9 Mar 2022 13:11:17 +0100 Subject: [PATCH] Commit --- public/teamtable/edit/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/teamtable/edit/update.php b/public/teamtable/edit/update.php index 48e46ca..9ec8b86 100644 --- a/public/teamtable/edit/update.php +++ b/public/teamtable/edit/update.php @@ -39,8 +39,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') $team->setPhone($phone); $team->setParticipants($participants); $team->setRounds($rounds); - } catch(Throwable $e) { - $app->session->flash('Kunne ikke oppdatere lag: Validerings feil ' . $e->getMessage() , 'danger'); + } catch(InvalidArgumentException $e) { + $app->session->flash('Kunne ikke oppdatere lag: Validerings feil: ' . $e->getMessage() , 'danger'); $app->redirect('index.php'); }