summaryrefslogtreecommitdiff
path: root/lib/popularnoticesection.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-23 14:46:54 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-07-23 14:46:54 -0700
commit8641cb4591d2b8385a661ea743833392ef45ff8b (patch)
tree8e032e94d0baa8daf5b6cbd4fe54ef0406c5f691 /lib/popularnoticesection.php
parenta7ad37f83fcdf611f9a65d38b35ac1874979198c (diff)
parent0dab5f58723cba8b5915c694a8200e242cc9ec02 (diff)
Merge branch '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')),