aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2020-01-08 21:34:33 +0700
committerrxu <rxu@mail.ru>2020-01-08 22:05:55 +0700
commit75c03dd81efda3d7142a9caea05d837550a62742 (patch)
treec477ef324277548e6eda14957fce5a523f839923 /phpBB/phpbb
parentMerge branch 'prep-release-3.3.0' into 3.3.x (diff)
downloadphpbb-75c03dd81efda3d7142a9caea05d837550a62742.tar.gz
phpbb-75c03dd81efda3d7142a9caea05d837550a62742.tar.bz2
phpbb-75c03dd81efda3d7142a9caea05d837550a62742.zip
[ticket/16307] Fix SQL time reporting when debug.sql_explain parameter is set
PHPBB3-16307
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/driver/driver.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php
index 93f0a749e5..2a4150b558 100644
--- a/phpBB/phpbb/db/driver/driver.php
+++ b/phpBB/phpbb/db/driver/driver.php
@@ -1037,12 +1037,6 @@ abstract class driver implements driver_interface
function sql_report($mode, $query = '')
{
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 != '')
{