aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql4.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/mysql4.php')
-rw-r--r--phpBB/includes/db/mysql4.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php
index 399c8aed96..6eb0a2c811 100644
--- a/phpBB/includes/db/mysql4.php
+++ b/phpBB/includes/db/mysql4.php
@@ -187,7 +187,10 @@ class sql_db
$this->sql_report .= "<hr>\n";
}
- $this->open_queries[] = $this->query_result;
+ if (preg_match('/^SELECT/', $query))
+ {
+ $this->open_queries[] = $this->query_result;
+ }
}
if (!empty($cache_result))