From 7ad2f2a371eae2489330f30306cfcbb204411bae Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 23 Dec 2008 14:44:28 -0500 Subject: TRUE More PEAR coding standards global changes. Here, I've changed all instances of TRUE to true and FALSE to false. darcs-hash:20081223194428-84dde-cb1a1e6f679acd68e864545c4d4dd8752d6a6257.gz --- classes/Notice.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'classes/Notice.php') 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; } -- cgit v1.2.3-54-g00ecf