[ticket/16307] Fix SQL time reporting when debug.sql_explain parameter is set

PHPBB3-16307
This commit is contained in:
rxu 2020-01-08 21:34:33 +07:00
parent 126b17898d
commit 75c03dd81e
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -1037,12 +1037,6 @@ abstract class driver implements driver_interface
function sql_report($mode, $query = '') function sql_report($mode, $query = '')
{ {
global $cache, $starttime, $phpbb_root_path, $phpbb_path_helper; global $cache, $starttime, $phpbb_root_path, $phpbb_path_helper;
global $request;
if (is_object($request) && !$request->variable('explain', false))
{
return false;
}
if (!$query && $this->query_hold != '') if (!$query && $this->query_hold != '')
{ {