summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-06-26 20:25:52 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-15 20:05:57 +1200
commit63ea2b7c451640910d4190c7c0d904af688a85d5 (patch)
tree07766af8d804a135fd9bc378eb82d9a64ee73f6a /classes
parentb05b998d68ab2d4802ed4ec96abec59332ffe354 (diff)
changed to SQL standard of LIMIT 20 OFFSET 1 etc.
Diffstat (limited to 'classes')
-rw-r--r--classes/Fave.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Fave.php b/classes/Fave.php
index c3ec62dcf..4b28d06b4 100644
--- a/classes/Fave.php
+++ b/classes/Fave.php
@@ -79,7 +79,7 @@ class Fave extends Memcached_DataObject
$qry .= 'ORDER BY modified DESC ';
if (!is_null($offset)) {
- $qry .= "LIMIT $offset, $limit";
+ $qry .= "LIMIT $limit OFFSET $offset";
}
$fav->query($qry);