summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authormatthiasgrimm <matthiasgrimm@users.sourceforge.net>2006-06-11 18:43:47 +0200
committermatthiasgrimm <matthiasgrimm@users.sourceforge.net>2006-06-11 18:43:47 +0200
commit2f3dc51dfd3a547d110bd7c74738db705a75a963 (patch)
treedcc4264a5d93bd15b8ad3b5984d22fb41d79f866 /inc
parentcfedcd21efd6eb1725667b39229aa19c1493a7e1 (diff)
downloadrpg-2f3dc51dfd3a547d110bd7c74738db705a75a963.tar.gz
rpg-2f3dc51dfd3a547d110bd7c74738db705a75a963.tar.bz2
MySQL 3.23 compatibility issue
MySQL 3.23 doesn't support the keyword OFFSET in the LIMIT statement. This patch changes the code to the second alternative syntax. darcs-hash:20060611164347-7ef76-b38861cebe45604c253bd4436451825733fe7083.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/auth/mysql.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth/mysql.class.php b/inc/auth/mysql.class.php
index 71788f57d..da89dd845 100644
--- a/inc/auth/mysql.class.php
+++ b/inc/auth/mysql.class.php
@@ -339,7 +339,7 @@ class auth_mysql extends auth_basic {
if($this->_openDB()) {
$this->_lockTables("READ");
$sql = $this->_createSQLFilter($this->cnf['getUsers'], $filter);
- $sql .= " ".$this->cnf['SortOrder']." LIMIT $limit OFFSET $first";
+ $sql .= " ".$this->cnf['SortOrder']." LIMIT $first, $limit";
$result = $this->_queryDB($sql);
foreach ($result as $user)