summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-08-28 20:45:12 +1200
committerBrenda Wallace <shiny@cpan.org>2009-08-28 20:45:12 +1200
commit815630fe6377824fd94c93463938603aed5f6ea8 (patch)
tree46852b12c7a4f85d6b5aaa8b0f35b0f1c04a0104 /classes
parentb9ea2bf1bc96629c91bfb41d665e5a6954fa9b06 (diff)
used standard SQL that mysql and pgsql both like
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/User.php b/classes/User.php
index 060cd8005..11cb4f08b 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -650,11 +650,7 @@ class User extends Memcached_DataObject
'AND subscription.subscribed != subscription.subscriber ' .
'ORDER BY subscription.created DESC ';
- if (common_config('db','type') == 'pgsql') {
- $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
- } else {
- $qry .= ' LIMIT ' . $offset . ', ' . $limit;
- }
+ $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
$profile = new Profile();