From e70b3b24fc8ac7b54a820ae87ce8f4af4043125e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 09 Oct 2008 02:25:43 -0400
Subject: [PATCH] - send set_unread_count() only when changing /Seen status

---
 program/include/bugs.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/program/include/bugs.inc b/program/include/bugs.inc
index f7a1fd5..56b88c6 100644
--- a/program/include/bugs.inc
+++ b/program/include/bugs.inc
@@ -72,6 +72,7 @@
   // write error to local log file
   if ($CONFIG['debug_level'] & 1)
   {
+    $post_query = ($_SERVER['REQUEST_METHOD'] == 'POST' ? '?_task='.urlencode($_POST['_task']).'&_action='.urlencode($_POST['_action']) : '');
     $log_entry = sprintf("[%s] %s Error: %s in %s on line %d (%s %s)\n",
       date("d-M-Y H:i:s O", mktime()),
       $program,
@@ -79,7 +80,7 @@
       $arg_arr['file'],
       $arg_arr['line'],
       $_SERVER['REQUEST_METHOD'],
-      $_SERVER['REQUEST_URI']);
+      $_SERVER['REQUEST_URI'] . $post_query);
       
     if (empty($CONFIG['log_dir']))
       $CONFIG['log_dir'] = INSTALL_PATH.'logs';

--
Gitblit v1.9.1