mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[feature/request-class] Check for existence of $request
PHPBB3-9716
This commit is contained in:
parent
c2ffa78521
commit
2092a8aaca
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ class dbal
|
|||
global $cache, $starttime, $phpbb_root_path, $user;
|
||||
global $request;
|
||||
|
||||
if (!$request->variable('explain', false))
|
||||
if (is_object($request) && !$request->variable('explain', false))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue