diff --git a/public/admin.php b/public/admin.php index 697c4ed..9d137ec 100644 --- a/public/admin.php +++ b/public/admin.php @@ -43,7 +43,7 @@ if ($page === 'logout') { // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => 'lohne']); +$stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var $municipality = $stmt->fetch(); // Shows Login Page if not authenticated diff --git a/public/index.php b/public/index.php index b3b189e..4c2e12e 100644 --- a/public/index.php +++ b/public/index.php @@ -14,7 +14,7 @@ require_once __DIR__ . '/api/db.php'; // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => 'lohne']); +$stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var $municipality = $stmt->fetch(); if (!$municipality) {