diff options
Diffstat (limited to 'phpBB/includes/db/dbal.php')
| -rw-r--r-- | phpBB/includes/db/dbal.php | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index eeddf1f41b..e0d329abfe 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -711,8 +711,9 @@ class dbal  	function sql_report($mode, $query = '')  	{  		global $cache, $starttime, $phpbb_root_path, $user; +		global $request; -		if (empty($_REQUEST['explain'])) +		if (is_object($request) && !$request->variable('explain', false))  		{  			return false;  		}  | 
