aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-10-12 16:14:01 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-10-12 16:14:01 +0200
commit2092a8aaca4fed55c089142b3bee55bb88a87e14 (patch)
treea3e2e7018e331625afc4c8c89185e63b46d2df11
parentc2ffa78521a656b1a183d75c8de2f88624011967 (diff)
downloadforums-2092a8aaca4fed55c089142b3bee55bb88a87e14.tar
forums-2092a8aaca4fed55c089142b3bee55bb88a87e14.tar.gz
forums-2092a8aaca4fed55c089142b3bee55bb88a87e14.tar.bz2
forums-2092a8aaca4fed55c089142b3bee55bb88a87e14.tar.xz
forums-2092a8aaca4fed55c089142b3bee55bb88a87e14.zip
[feature/request-class] Check for existence of $request
PHPBB3-9716
-rw-r--r--phpBB/includes/db/dbal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index 9a0e9f1b55..e0d329abfe 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -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;
}