mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch 'feature/igorw/request-class' into develop
* feature/igorw/request-class: [feature/request-class] Check for existence of $request
This commit is contained in:
commit
186bc82480
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