From 4d144ec7042a183dbff5e812db27f839ccf27948 Mon Sep 17 00:00:00 2001 From: rirat-0 Date: Wed, 3 Jun 2026 00:44:57 +0200 Subject: [PATCH] fehlersuche 5 --- content/search-results.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/search-results.php b/content/search-results.php index 5287246..fa4871b 100644 --- a/content/search-results.php +++ b/content/search-results.php @@ -12,6 +12,12 @@ echo ""; $projectRoot = "/var/www/html/DI-14-C-ImplementedSearch"; $articleClassPath = $projectRoot . '/model/Article.php'; +require_once $projectRoot . '/model/Article.php'; + +if (session_status() === PHP_SESSION_NONE) { + session_start(); +} + $results = $_SESSION["search_results"] ?? []; $query = $_SESSION["search_query"] ?? ""; $resultCount = count($results);