From: Brenda Wallace Date: Fri, 26 Jun 2009 08:25:52 +0000 (+1200) Subject: changed to SQL standard of LIMIT 20 OFFSET 1 etc. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63ea2b7c451640910d4190c7c0d904af688a85d5;p=quix0rs-gnu-social.git changed to SQL standard of LIMIT 20 OFFSET 1 etc. --- diff --git a/classes/Fave.php b/classes/Fave.php index c3ec62dcf0..4b28d06b46 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);