From 313110ca2dc6500229390355afc704670723784b Mon Sep 17 00:00:00 2001 From: William Date: Thu, 10 Feb 2022 17:57:39 +0100 Subject: [PATCH] Commit --- app/core/ErrorHandler.php | 1 + public/teamtable/edit/delete.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/ErrorHandler.php b/app/core/ErrorHandler.php index 3e75063..7a5c6d7 100644 --- a/app/core/ErrorHandler.php +++ b/app/core/ErrorHandler.php @@ -32,6 +32,7 @@ class ErrorHandler } ob_end_clean(); // Remove current output to be replaced by error page http_response_code(500); + header_remove(); echo ''; echo '

Error!!1 (✖īšâœ–)

'; diff --git a/public/teamtable/edit/delete.php b/public/teamtable/edit/delete.php index 16644a7..77c1e39 100644 --- a/public/teamtable/edit/delete.php +++ b/public/teamtable/edit/delete.php @@ -21,7 +21,7 @@ if (!is_numeric($id)) $currentTeam = $model->getTeamByID($id); if (!$currentTeam) { - $app->session->flash("Kunne ikke slette lag: LagID \"$id\" finnes ikke", "danger"); + $app->session->flash("Kunne ikke slette lag: LagID $id finnes ikke", "danger"); $app->redirect('index.php'); }