Skip to content

Commit

Permalink
From dd7bc8c Mon Sep 17 00:00:00 2001
Browse files Browse the repository at this point in the history
From: Paul <paul@mantisforge.org>
Date: Wed, 20 Apr 2011 01:10:24 +0100
Subject: [PATCH 032/449] XHTML Fix
  • Loading branch information
mantis committed Oct 9, 2013
1 parent f89954c commit 5d78887
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions core/logging_api.php
Expand Up @@ -148,6 +148,19 @@ function log_event( $p_level, $p_msg, $p_backtrace = null ) {
function log_print_to_page() {
if ( config_get_global( 'log_destination' ) === 'page' && auth_is_user_authenticated() && access_has_global_level( config_get( 'show_log_threshold' ) ) ) {
global $g_log_events, $g_log_levels;

$t_unique_queries_count = 0;
$t_total_query_execution_time = 0;
$t_unique_queries = array();
$t_total_queries_count = 0;
$t_total_event_count = count( $g_log_events );

if( $t_total_event_count == 0 ) {
echo "\n\n<!--Mantis Debug Log Output-->";
echo "<!--END Mantis Debug Log Output-->\n\n";
return;
}

echo "\n\n<!--Mantis Debug Log Output-->";
echo "<hr />\n";
echo "<table id=\"log-event-list\">\n";
Expand All @@ -161,18 +174,6 @@ function log_print_to_page() {
echo "\t</thead>\n";
echo "\t<tbody>\n";

$t_unique_queries_count = 0;
$t_total_query_execution_time = 0;
$t_unique_queries = array();
$t_total_queries_count = 0;
$t_total_event_count = count( $g_log_events );

if( $t_total_event_count == 0 ) {
echo "\t</tbody>\n\t</table>\n";
echo "<!--END Mantis Debug Log Output-->\n\n";
return;
}

for ( $i = 0; $i < $t_total_event_count; $i++ ) {
if( $g_log_events[$i][1] == LOG_DATABASE ) {
if( !in_array( $g_log_events[$i][2][0], $t_unique_queries ) ) {
Expand Down

0 comments on commit 5d78887

Please sign in to comment.