aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/driver/driver.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-01-04 10:49:57 +0100
committerMarc Alexander <admin@m-a-styles.de>2013-01-04 10:49:57 +0100
commit5d091e2d8f5079a8ce8dc14500c29f6642c40e98 (patch)
treef4c73527be7e6f5e783351edc306e929a8946b31 /phpBB/includes/db/driver/driver.php
parent4a8b1a6e050bba7f8f73f689bbca4185ab27cf8c (diff)
parent228580b6743b9650996284dd04a3f5de6c2447ca (diff)
downloadforums-5d091e2d8f5079a8ce8dc14500c29f6642c40e98.tar
forums-5d091e2d8f5079a8ce8dc14500c29f6642c40e98.tar.gz
forums-5d091e2d8f5079a8ce8dc14500c29f6642c40e98.tar.bz2
forums-5d091e2d8f5079a8ce8dc14500c29f6642c40e98.tar.xz
forums-5d091e2d8f5079a8ce8dc14500c29f6642c40e98.zip
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/avatars
Conflicts: phpBB/includes/ucp/ucp_groups.php
Diffstat (limited to 'phpBB/includes/db/driver/driver.php')
-rw-r--r--phpBB/includes/db/driver/driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/db/driver/driver.php b/phpBB/includes/db/driver/driver.php
index 25daa7243d..8dda94bc2c 100644
--- a/phpBB/includes/db/driver/driver.php
+++ b/phpBB/includes/db/driver/driver.php
@@ -206,7 +206,7 @@ class phpbb_db_driver
$query_id = $this->query_result;
}
- if ($cache->sql_exists($query_id))
+ if ($cache && $cache->sql_exists($query_id))
{
return $cache->sql_rowseek($rownum, $query_id);
}
@@ -256,7 +256,7 @@ class phpbb_db_driver
$this->sql_rowseek($rownum, $query_id);
}
- if (!is_object($query_id) && $cache->sql_exists($query_id))
+ if ($cache && !is_object($query_id) && $cache->sql_exists($query_id))
{
return $cache->sql_fetchfield($query_id, $field);
}
@@ -822,7 +822,7 @@ class phpbb_db_driver
*/
function sql_report($mode, $query = '')
{
- global $cache, $starttime, $phpbb_root_path, $user;
+ global $cache, $starttime, $phpbb_root_path, $phpbb_admin_path, $user;
global $request;
if (is_object($request) && !$request->variable('explain', false))
@@ -852,7 +852,7 @@ class phpbb_db_driver
<head>
<meta charset="utf-8">
<title>SQL Report</title>
- <link href="' . $phpbb_root_path . 'adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />
+ <link href="' . htmlspecialchars($phpbb_admin_path) . 'style/admin.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body id="errorpage">
<div id="wrap">