fixed up a limit offset to be ANSI SQL compliant
This commit is contained in:
parent
9b372f5bb7
commit
27e525dbbc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user