summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-07-23 15:07:28 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-23 15:07:28 +1200
commit27e525dbbc126b4fce91c89f25153dfe2b771ee9 (patch)
tree2bc43949d43af3187124966e1ac392051778fd6a /classes
parent9b372f5bb7638d5d9b4e48ae425d921bc8559235 (diff)
fixed up a limit offset to be ANSI SQL compliant
Diffstat (limited to 'classes')
-rw-r--r--classes/Profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 224b61bd2..32de608cf 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -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);