Make isSyndicated() return a boolean like its name, documentation and callers suggest...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Jan 2010 00:09:25 +0000 (00:09 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 27 Jan 2010 00:09:25 +0000 (00:09 +0000)
includes/OutputPage.php

index f95c6e5..d431daa 100644 (file)
@@ -438,7 +438,7 @@ class OutputPage {
         *
         * @return Boolean
         */
-       public function isSyndicated() { return count($this->mFeedLinks); }
+       public function isSyndicated() { return count($this->mFeedLinks) > 0; }
 
        public function getFeedAppendQuery() { return $this->mFeedLinksAppendQuery; }