diff --git a/index.php b/index.php index 9383a5c..17a64e8 100644 --- a/index.php +++ b/index.php @@ -60,7 +60,8 @@ $projects = [ * Verhindert Broken Images. */ function logoExists(string $webPath): bool { - $filePath = $_SERVER['DOCUMENT_ROOT'] . $webPath; + // Absoluten Dateisystempfad relativ zur index.php auflösen + $filePath = __DIR__ . '/' . ltrim($webPath, '/'); return is_file($filePath); }