summaryrefslogtreecommitdiff
path: root/lib/popularnoticesection.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-07-21 09:20:47 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-07-21 09:20:47 -0500
commitdb19d61e68fcf8398579c2c4968e73db7f7ed93b (patch)
treeca64284fb8544823de4a120bca8d45b424fb65b8 /lib/popularnoticesection.php
parentc32e494c0c480e30317b0f0a8dcae7103c4ff89e (diff)
parentfbb0df9f5436e956c43ace372f625f08628c000f (diff)
Merge commit 'origin/0.8.x' into 0.9.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')),