aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/sqlite.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-17 18:41:49 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-17 18:41:49 +0000
commita841fe70a8234bf158165105339e32aa5ceb75a2 (patch)
treea3e85eb75ec6bb59b331bd830667532d4511a868 /phpBB/includes/db/sqlite.php
parent708113b790368fffbf57eb5b96c8132eda00ba9c (diff)
downloadforums-a841fe70a8234bf158165105339e32aa5ceb75a2.tar
forums-a841fe70a8234bf158165105339e32aa5ceb75a2.tar.gz
forums-a841fe70a8234bf158165105339e32aa5ceb75a2.tar.bz2
forums-a841fe70a8234bf158165105339e32aa5ceb75a2.tar.xz
forums-a841fe70a8234bf158165105339e32aa5ceb75a2.zip
ok, handled some bugs... the most important being validate_username (the variable passed to validate_data([...]array('username', [...])) and updating group listings while doing relevant group actions. Oh, and PM icons are working now. :o
git-svn-id: file:///svn/phpbb/trunk@6894 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/sqlite.php')
-rw-r--r--phpBB/includes/db/sqlite.php25
1 files changed, 9 insertions, 16 deletions
diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php
index 708376881c..9f44bd6b35 100644
--- a/phpBB/includes/db/sqlite.php
+++ b/phpBB/includes/db/sqlite.php
@@ -141,26 +141,19 @@ class dbal_sqlite extends dbal
/**
* Build LIMIT query
*/
- function sql_query_limit($query, $total, $offset = 0, $cache_ttl = 0)
+ function _sql_query_limit($query, $total, $offset = 0, $cache_ttl = 0)
{
- if ($query != '')
- {
- $this->query_result = false;
-
- // if $total is set to 0 we do not want to limit the number of rows
- if ($total == 0)
- {
- $total = -1;
- }
-
- $query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
+ $this->query_result = false;
- return $this->sql_query($query, $cache_ttl);
- }
- else
+ // if $total is set to 0 we do not want to limit the number of rows
+ if ($total == 0)
{
- return false;
+ $total = -1;
}
+
+ $query .= "\n LIMIT " . ((!empty($offset)) ? $offset . ', ' . $total : $total);
+
+ return $this->sql_query($query, $cache_ttl);
}
/**