Commit
This commit is contained in:
parent
5d5a998c35
commit
313110ca2d
@ -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 '<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>';
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user