aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r--phpBB/db/mysql.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index 4d0f9d62f6..121d6be748 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -216,7 +216,7 @@ class sql_db
$this->query_result = false;
$this->num_queries++;
- $query .= ' LIMIT ' . ((!empty($offset)) ? $offset . ', ' . $total : $total);
+ $query .= ' LIMIT ' . ((!empty($offset)) ? $total . ', ' . $offset : $total);
return $this->sql_query($query, $expire_time);
}