mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/request-class] Check for existence of $request
PHPBB3-9716
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user