Update index.php

This commit is contained in:
2026-07-18 16:14:09 +02:00
parent f61c548b9e
commit d3435d4cde
+2 -2
View File
@@ -36,8 +36,8 @@ include_once "php/controller/index-controller.php";
<?php <?php
include_once 'includes/navbar.php'; include_once 'includes/navbar.php';
// Dynamischer Inhalt (Nutzt das geprüfte $pfad aus dem Index-Controller) // Dynamischer Inhalt
if ($pfad !== "404" && file_exists('content/' . $pfad . '.php')) { if (isset($pfad) && $pfad !== "404" && file_exists('content/' . $pfad . '.php')) {
include_once 'content/' . $pfad . '.php'; include_once 'content/' . $pfad . '.php';
} else { } else {
include_once 'content/404.php'; include_once 'content/404.php';