1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 00:25:19 +02:00

[feature/request-class] Check for existence of $request

PHPBB3-9716
This commit is contained in:
Igor Wiedler 2010-10-12 16:14:01 +02:00
parent c2ffa78521
commit 2092a8aaca

View File

@ -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;
}