aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 589e68007e..6346567076 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -191,7 +191,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))