From c74b68c26be43b2f622bbde659442a5988090b78 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Thu, 24 Apr 2003 18:19:45 +0000 Subject: Store only SELECT queries to be flushed later git-svn-id: file:///svn/phpbb/trunk@3945 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/mysql.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/db/mysql.php') 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 .= "
\n"; } - $this->open_queries[] = $this->query_result; + if (preg_match('/^SELECT/', $query)) + { + $this->open_queries[] = $this->query_result; + } } if (!empty($cache_result)) -- cgit v1.2.1