diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-17 12:51:32 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-17 12:51:32 +0000 |
| commit | 4962db5f6715210d4e577fa843f82ffe61b47bc4 (patch) | |
| tree | bba382a22c3dba0ae7548c62c32348f11e7e7dd5 /phpBB/includes/db | |
| parent | 59ba11f18f9b43fc154018923c20dcc17db8ffa7 (diff) | |
| download | forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.gz forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.bz2 forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.tar.xz forums-4962db5f6715210d4e577fa843f82ffe61b47bc4.zip | |
- fix some bugs...
git-svn-id: file:///svn/phpbb/trunk@5643 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
| -rw-r--r-- | phpBB/includes/db/firebird.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/mssql.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/mssql_odbc.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/mysql.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/mysql4.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/oracle.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/postgres.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/db/sqlite.php | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php index dda1094498..416321f1bc 100644 --- a/phpBB/includes/db/firebird.php +++ b/phpBB/includes/db/firebird.php @@ -106,7 +106,7 @@ class dbal_firebird extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index fee90af896..92e1974f1a 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -118,7 +118,7 @@ class dbal_mssql extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/mssql_odbc.php b/phpBB/includes/db/mssql_odbc.php index e9b2a9b03e..55eeddb310 100644 --- a/phpBB/includes/db/mssql_odbc.php +++ b/phpBB/includes/db/mssql_odbc.php @@ -116,7 +116,7 @@ class dbal_mssql_odbc extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php index e3f654fce5..ab02fc7746 100644 --- a/phpBB/includes/db/mysql.php +++ b/phpBB/includes/db/mysql.php @@ -118,7 +118,7 @@ class dbal_mysql extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/mysql4.php b/phpBB/includes/db/mysql4.php index db2356d26d..0a7d15b988 100644 --- a/phpBB/includes/db/mysql4.php +++ b/phpBB/includes/db/mysql4.php @@ -120,7 +120,7 @@ class dbal_mysql4 extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/oracle.php b/phpBB/includes/db/oracle.php index d51c928f5e..e7e75b9c7c 100644 --- a/phpBB/includes/db/oracle.php +++ b/phpBB/includes/db/oracle.php @@ -132,7 +132,7 @@ class dbal_oracle extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php index 8e680e9968..d7cfa1ba10 100644 --- a/phpBB/includes/db/postgres.php +++ b/phpBB/includes/db/postgres.php @@ -153,7 +153,7 @@ class dbal_postgres extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php index 17a8adb411..d10fbc486b 100644 --- a/phpBB/includes/db/sqlite.php +++ b/phpBB/includes/db/sqlite.php @@ -117,7 +117,7 @@ class dbal_sqlite extends dbal $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) + else if (strpos($query, 'SELECT') === 0 && $this->query_result) { $this->open_queries[(int) $this->query_result] = $this->query_result; } |
