summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-28 13:43:16 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-28 13:43:16 -0400
commitf5f9559a6041e5f52596155308ba09d87e0c7973 (patch)
tree1c7842835f7bf1b4adab9961b0c77e71c4c79a95 /classes/Notice.php
parent4bea5b60a06e4177a62654cb850d67cd2adcfeed (diff)
correct some SQL and add some spaces
darcs-hash:20080928174316-5ed1f-73bc071fed0aff359c94b4213816e8830eba6c50.gz
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 76d6d801e..cbd952767 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -220,12 +220,12 @@ class Notice extends Memcached_DataObject
static function getStreamDirect($qry, $offset, $limit) {
- $qry .= 'ORDER BY notice.created DESC, notice.id DESC ';
+ $qry .= ' ORDER BY notice.created DESC, notice.id DESC ';
if(common_config('db','type')=='pgsql') {
- $qry .= 'LIMIT ' . $limit . ' OFFSET ' . $offset;
+ $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset;
} else {
- $qry .= 'LIMIT ' . $offset . ', ' . $limit;
+ $qry .= ' LIMIT ' . $offset . ', ' . $limit;
}
$notice = new Notice();