diff --git a/public/admin.php b/public/admin.php index f0ca626..144d407 100644 --- a/public/admin.php +++ b/public/admin.php @@ -54,7 +54,7 @@ if ($page === 'logout') { // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); # TODO: test slug as env var +$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); $municipality = $stmt->fetch(); // Shows Login Page if not authenticated diff --git a/public/index.php b/public/index.php index b151586..7423017 100644 --- a/public/index.php +++ b/public/index.php @@ -25,7 +25,7 @@ require_once __DIR__ . '/api/db.php'; // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); # TODO: test slug as env var +$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); $municipality = $stmt->fetch(); if (!$municipality) {