Skip to content

Commit

Permalink
avoid doubling line in logviewer. fixes #3554
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 24, 2021
1 parent f906423 commit b9a4556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/logviewer/admin.php
Expand Up @@ -103,10 +103,10 @@ protected function displayLog()
echo '<dd>';
while ($line[0] === ' ' && $line[1] === ' ') {
echo hsc(substr($line, 2)) . '<br />';
$line = $lines[$i++];
$line = $lines[++$i];
}
echo '</dd>';
$i -= 2; // rewind the counter
$i -= 1; // rewind the counter
} else {
// other lines are actual log lines in three parts
list($dt, $file, $msg) = explode("\t", $line, 3);
Expand Down

0 comments on commit b9a4556

Please sign in to comment.