diff --git a/public/index.php b/public/index.php index a5bc9fa..30d32fd 100644 --- a/public/index.php +++ b/public/index.php @@ -1,16 +1,16 @@ prepare("SELECT * FROM municipalities WHERE slug = :slug"); @@ -18,42 +18,46 @@ $stmt->execute([':slug' => 'lohne']); $municipality = $stmt->fetch(); if (!$municipality) { - die("Municipality not found."); + http_response_code(404); + echo "

404 — Municipality not listed in Database.

"; + exit; } + ?> - Bürgerbeteiligung <?= htmlspecialchars($municipality['name']) ?> - + Bürgerbeteiligungsportal <?= htmlspecialchars($municipality['name']) ?> + + - + - + - + - + - + - + - + @@ -306,7 +310,7 @@ if (!$municipality) { - +