mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12687] Wrap $GLOBALS['starttime'] in a if
PHPBB3-12687
This commit is contained in:
@@ -5059,10 +5059,13 @@ function phpbb_generate_debug_output(phpbb\db\driver\driver_interface $db, \phpb
|
||||
|
||||
// Output page creation time
|
||||
if (defined('PHPBB_DISPLAY_LOAD_TIME'))
|
||||
{
|
||||
if (isset($GLOBALS['starttime']))
|
||||
{
|
||||
$totaltime = microtime(true) - $GLOBALS['starttime'];
|
||||
|
||||
$debug_info[] = sprintf('Time : %.3fs', $totaltime);
|
||||
}
|
||||
|
||||
$debug_info[] = $db->sql_num_queries() . ' Queries';
|
||||
|
||||
if (function_exists('memory_get_peak_usage'))
|
||||
|
Reference in New Issue
Block a user