Russell-IO / php-syslog-ng

Automatically exported from code.google.com/p/php-syslog-ng
1 stars 0 forks source link

tailresult don't show counter #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select tail in webfrontend
2. CEMDB is false
3. counter bigger than one

What is the expected output? What do you see instead?
There should be displayed the counter

What version of the product are you using? On what operating system?
2.9.9f with db_insert.pl without cemdb

Please provide any additional information below.
In the File includes/tailresult.php there is a wrong column name set in
anout Line 596:
Is:
if ($row['count'] > 1) echo '<b>'.$row['count'].' *</b> ';
Should be:
if ($row['counter'] > 1) echo '<b>'.$row['counter'].' *</b> ';

With kind regards

Michael Baecker

Original issue reported on code.google.com by baecker....@googlemail.com on 27 Oct 2009 at 9:26

GoogleCodeExporter commented 9 years ago
Just updated to new version. Here is the diff:

--- tailresult.php.old  2009-10-27 10:41:35.219293826 +0100
+++ tailresult.php      2009-10-27 10:41:49.257915092 +0100
@@ -600,7 +600,7 @@
                // this will prevent unnecessary popups and allow filtering via a link
                $msg = htmlspecialchars($row['msg']);
                echo "<td>";
-               if ($row['count'] > 1) echo ''.$row['count'].' * ';
+               if ($row['counter'] > 1) echo ''.$row['counter'].' * ';
                if(defined('MSG_EXPLODE') && MSG_EXPLODE == TRUE) {
                        echo "$explode_url</td>\n";
                } else {

Original comment by baecker....@googlemail.com on 27 Oct 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Good catch! Thanks :-)

Original comment by cdu...@gmail.com on 13 Nov 2009 at 11:12