diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-08-28 20:44:11 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-08-28 20:44:11 +1200 |
commit | b9ea2bf1bc96629c91bfb41d665e5a6954fa9b06 (patch) | |
tree | c13a548957a4ec0027dfebf9899a61d0339bf071 /classes/User.php | |
parent | b833b725a8b1da1ddbe3ff8f05dd1ccd660955a1 (diff) |
used standard SQL that mysql and pgsql both like
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/User.php b/classes/User.php index 618e2d6aa..060cd8005 100644 --- a/classes/User.php +++ b/classes/User.php @@ -627,11 +627,7 @@ class User extends Memcached_DataObject 'ORDER BY subscription.created DESC '; if ($offset) { - if (common_config('db','type') == 'pgsql') { - $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset; - } else { - $qry .= ' LIMIT ' . $offset . ', ' . $limit; - } + $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset; } $profile = new Profile(); |