diff --git a/public/admin.php b/public/admin.php index c60aa96..dec3e7d 100644 --- a/public/admin.php +++ b/public/admin.php @@ -37,7 +37,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(); // Show Login Page if not authenticated diff --git a/public/index.php b/public/index.php index 80caa64..b63b20d 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) {