mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 18:45:20 +02:00
[feature/request-class] Check for existence of $request
PHPBB3-9716
This commit is contained in:
parent
c2ffa78521
commit
2092a8aaca
@ -713,7 +713,7 @@ class dbal
|
|||||||
global $cache, $starttime, $phpbb_root_path, $user;
|
global $cache, $starttime, $phpbb_root_path, $user;
|
||||||
global $request;
|
global $request;
|
||||||
|
|
||||||
if (!$request->variable('explain', false))
|
if (is_object($request) && !$request->variable('explain', false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user