diff --git a/config.php b/config.php index c52513f..7f2bef6 100644 --- a/config.php +++ b/config.php @@ -74,7 +74,10 @@ $result= $db->prepare("SELECT count(*) FROM district WHERE district=:district"); $result->bindParam(":district",$strDistrict); $result->execute(); if ($row=$result->fetch(PDO::FETCH_NUM)) { - if ($row[0]==0) $strDistrict=""; //default setzten + if ($row[0]==0) { + $strDistrict=""; //default setzten + $strDistrictTitle="Unbekannt"; + } } // Spezifische Konfiguration für Districtt diff --git a/impressum.php b/impressum.php index 6d67af6..c71a956 100644 --- a/impressum.php +++ b/impressum.php @@ -1,6 +1,5 @@ diff --git a/index.php b/index.php index 88f88c8..c049973 100644 --- a/index.php +++ b/index.php @@ -8,11 +8,6 @@ * Datum: 16.02.2024 ******************************** */ -/* - if (!file_exists("db/locations.db")) { - header("Location: setup.php"); - } -*/ // Starte die Session session_start(); if (isset($_GET['d'])) { @@ -24,7 +19,7 @@ else { header("Location: start.php"); } - + session_write_close(); require("config.php"); require_once("lib/functions.php"); @@ -134,7 +129,7 @@ Datenschutzerklärung @@ -148,6 +143,7 @@