summaryrefslogtreecommitdiff
path: root/lib/popularnoticesection.php
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-07-19 08:05:53 +0100
committerCiaranG <ciaran@ciarang.com>2009-07-19 08:05:53 +0100
commit1139f7cad59aa562eb1a7f7691c00392206e73fd (patch)
treeb97dacb336af0638e8b1583af283269d5645a4c7 /lib/popularnoticesection.php
parentc74943e5985c7a096db3c1fc8f34a6e97c8c1efa (diff)
parent788dd66dbe75db5d09c0cd5b33bb3347233cbd15 (diff)
Merge commit 'br3nda/0.8.x-pgfixes' into 0.8.x
Diffstat (limited to 'lib/popularnoticesection.php')
-rw-r--r--lib/popularnoticesection.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/popularnoticesection.php b/lib/popularnoticesection.php
index e47c9b385..167a6ff8d 100644
--- a/lib/popularnoticesection.php
+++ b/lib/popularnoticesection.php
@@ -74,11 +74,7 @@ class PopularNoticeSection extends NoticeSection
$offset = 0;
$limit = NOTICES_PER_SECTION + 1;
- if (common_config('db', 'type') == 'pgsql') {
- $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
- } else {
- $qry .= ' LIMIT ' . $offset . ', ' . $limit;
- }
+ $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
$notice = Memcached_DataObject::cachedQuery('Notice',
sprintf($qry, common_config('popular', 'dropoff')),