]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixed up a limit offset to be ANSI SQL compliant
authorBrenda Wallace <shiny@cpan.org>
Thu, 23 Jul 2009 03:07:28 +0000 (15:07 +1200)
committerBrenda Wallace <shiny@cpan.org>
Thu, 23 Jul 2009 03:07:28 +0000 (15:07 +1200)
classes/Profile.php

index 224b61bd2ee3508f19789923879b07f5ae3582e5..32de608cffeba451f6daa6392a62f74efed2e5b1 100644 (file)
@@ -199,7 +199,7 @@ class Profile extends Memcached_DataObject
         $query .= ' order by id DESC';
 
         if (!is_null($offset)) {
-            $query .= " limit $offset, $limit";
+            $query .= " LIMIT $limit OFFSET $offset";
         }
 
         $notice->query($query);