mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02: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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user