diff options
Diffstat (limited to 'phpBB/adm')
-rw-r--r-- | phpBB/adm/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index 92bcf90039..2e07e58d0f 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -163,6 +163,7 @@ function adm_page_footer($copyright_html = true) { global $db, $config, $template, $user, $auth, $cache; global $starttime, $phpbb_root_path, $phpbb_admin_path, $phpEx; + global $request; // Output page creation time if (defined('DEBUG')) @@ -170,7 +171,7 @@ function adm_page_footer($copyright_html = true) $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; - if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report')) + if ($request->variable('explain', false) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report')) { $db->sql_report('display'); } |