forked from GNUsocial/gnu-social
changed to SQL standard of LIMIT 20 OFFSET 1 etc.
This commit is contained in:
parent
b05b998d68
commit
63ea2b7c45
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user