This commit is contained in:
William 2022-02-10 17:57:39 +01:00
parent 5d5a998c35
commit 313110ca2d
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class ErrorHandler
} }
ob_end_clean(); // Remove current output to be replaced by error page ob_end_clean(); // Remove current output to be replaced by error page
http_response_code(500); http_response_code(500);
header_remove();
echo '<style>body { margin: 1rem; background: tomato; font-family: sans; } #error { padding: 1rem; background: white; margin-bottom: 1rem; border: .1rem solid black; } </style>'; echo '<style>body { margin: 1rem; background: tomato; font-family: sans; } #error { padding: 1rem; background: white; margin-bottom: 1rem; border: .1rem solid black; } </style>';
echo '<h1>Error!!1 (✖﹏✖)</h1>'; echo '<h1>Error!!1 (✖﹏✖)</h1>';

View File

@ -21,7 +21,7 @@ if (!is_numeric($id))
$currentTeam = $model->getTeamByID($id); $currentTeam = $model->getTeamByID($id);
if (!$currentTeam) 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'); $app->redirect('index.php');
} }