debugging

This commit is contained in:
2026-07-18 14:30:54 +02:00
parent cab41ade7a
commit 470d98940a
+3 -1
View File
@@ -2,7 +2,9 @@
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
error_log("DEBUG search-results.php: search_results count = " . count($_SESSION["search_results"] ?? []) . ", query = " . ($_SESSION["search_query"] ?? "LEER"));
$log_msg = "DEBUG search-results.php: search_results count = " . count($_SESSION["search_results"] ?? []) . ", query = " . ($_SESSION["search_query"] ?? "LEER");
echo "<script>console.log(" . json_encode($log_msg) . ");</script>";
$all_results = $_SESSION["search_results"] ?? [];
$query = $_SESSION["search_query"] ?? "";
$totalResultsCount = count($all_results);