aufraeumen 4

This commit is contained in:
rirat-0
2026-06-03 02:02:54 +02:00
parent b9475a045f
commit d58ea953af
2 changed files with 3 additions and 10 deletions
+2 -6
View File
@@ -18,10 +18,6 @@ if ($_SERVER["REQUEST_METHOD"] === "GET" && isset($_GET["q"])) {
$results = $articleManager->search($search);
//$_SESSION["search_results"] = $results;
//$_SESSION["search_query"] = $search;
//$_SESSION["message"] = "new_search_results";
$safeArrayResults = [];
foreach ($results as $obj) {
$safeArrayResults[] = [
@@ -35,10 +31,10 @@ if ($_SERVER["REQUEST_METHOD"] === "GET" && isset($_GET["q"])) {
];
}
$_SESSION["search_results"] = $safeArrayResults; // Jetzt liegen hier sichere Arrays!
$_SESSION["search_results"] = $safeArrayResults;
$_SESSION["search_query"] = $search;
$_SESSION["message"] = "new_search_results";
} catch (Exception $e){
$_SESSION["message"] = "internal_error";
}