]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
changed to SQL standard of LIMIT 20 OFFSET 1 etc.
authorBrenda Wallace <shiny@cpan.org>
Fri, 26 Jun 2009 08:25:52 +0000 (20:25 +1200)
committerBrenda Wallace <shiny@cpan.org>
Wed, 15 Jul 2009 08:05:57 +0000 (20:05 +1200)
classes/Fave.php

index c3ec62dcf0176c7166d4f2dbb5e69e9791b86a2e..4b28d06b46db85d5d7363cc6ef2069cc12b90c9c 100644 (file)
@@ -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);