From: Brenda Wallace Date: Fri, 28 Aug 2009 08:45:12 +0000 (+1200) Subject: used standard SQL that mysql and pgsql both like X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=815630fe6377824fd94c93463938603aed5f6ea8;p=quix0rs-gnu-social.git used standard SQL that mysql and pgsql both like --- diff --git a/classes/User.php b/classes/User.php index 060cd80056..11cb4f08b4 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();