summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index d3aa4e828..3eb653066 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -321,19 +321,19 @@ class Notice extends Memcached_DataObject
static function getStreamDirect($qry, $offset, $limit, $since_id, $before_id, $order, $since) {
- $needAnd = FALSE;
- $needWhere = TRUE;
+ $needAnd = false;
+ $needWhere = true;
if (preg_match('/\bWHERE\b/i', $qry)) {
- $needWhere = FALSE;
- $needAnd = TRUE;
+ $needWhere = false;
+ $needAnd = true;
}
if ($since_id > 0) {
if ($needWhere) {
$qry .= ' WHERE ';
- $needWhere = FALSE;
+ $needWhere = false;
} else {
$qry .= ' AND ';
}
@@ -345,7 +345,7 @@ class Notice extends Memcached_DataObject
if ($needWhere) {
$qry .= ' WHERE ';
- $needWhere = FALSE;
+ $needWhere = false;
} else {
$qry .= ' AND ';
}
@@ -357,7 +357,7 @@ class Notice extends Memcached_DataObject
if ($needWhere) {
$qry .= ' WHERE ';
- $needWhere = FALSE;
+ $needWhere = false;
} else {
$qry .= ' AND ';
}
@@ -411,7 +411,7 @@ class Notice extends Memcached_DataObject
# On a cache hit, return a DB-object-like wrapper
- if ($notices !== FALSE) {
+ if ($notices !== false) {
$wrapper = new NoticeWrapper(array_slice($notices, $offset, $limit));
return $wrapper;
}