diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index 737872dd8f..4de7f2d5ee 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -254,7 +254,7 @@ class dbal
*/
function sql_report($mode, $query = '')
{
- global $cache, $starttime, $phpbb_root_path;
+ global $cache, $starttime, $phpbb_root_path, $user;
if (empty($_GET['explain']))
{
@@ -278,27 +278,43 @@ class dbal
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
- echo '
-
-
- Explain
-
-  |
- SQL Report |
-
-
-
- Page generated in ' . round($totaltime, 4) . " seconds with {$this->num_queries} queries" . (($this->cache_num_queries) ? " + {$this->cache_num_queries} " . (($this->cache_num_queries == 1) ? 'query' : 'queries') . ' returning data from cache' : '') . ' |
-
- Time spent on MySQL queries: ' . round($this->sql_time, 5) . 's | Time spent on PHP: ' . round($totaltime - $this->sql_time, 5) . 's |
-
-
-
- ' . $this->sql_report . ' |
-
-
-
- ';
+ echo '';
+ echo '';
+ echo '';
+ echo '';
+ echo 'SQL Report';
+ echo '';
+ echo '';
+ echo '';
+ echo '';
+ echo '';
+ echo ' ';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
SQL Report
';
+ echo '
+ Page generated in ' . round($totaltime, 4) . " seconds with {$this->num_queries} queries" . (($this->cache_num_queries) ? " + {$this->cache_num_queries} " . (($this->cache_num_queries == 1) ? 'query' : 'queries') . ' returning data from cache' : '') . ' |
+
+ Time spent on MySQL queries: ' . round($this->sql_time, 5) . 's | Time spent on PHP: ' . round($totaltime - $this->sql_time, 5) . 's |
+
+
+ ' . $this->sql_report . ' |
+
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '';
+ echo '';
+
exit;
break;