From d4d008cd1738438f4d3339598bf0570d8ff0ea6a Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 21 Jan 2008 14:05:09 +0000 Subject: [PATCH] include all queries from navigation in debug statistics (by not closing session file before script ends) --- navigation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/navigation.php b/navigation.php index aa60d2535..10d06dd20 100644 --- a/navigation.php +++ b/navigation.php @@ -70,7 +70,10 @@ if (isset($_REQUEST['pos'])) { $pos = $_SESSION['userconf']['navi_limit_offset']; // free the session file, for the other frames to be loaded -session_write_close(); +// but only if debugging is not enabled +if (empty($_SESSION['debug'])) { + session_write_close(); +} /** * the output compression library