and -> && in r77366
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 3 Dec 2010 19:32:25 +0000 (19:32 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 3 Dec 2010 19:32:25 +0000 (19:32 +0000)
includes/api/ApiFeedWatchlist.php

index f572ae6..a1a6c6e 100644 (file)
@@ -143,7 +143,7 @@ class ApiFeedWatchlist extends ApiBase {
        private function createFeedItem( $info ) {
                $titleStr = $info['title'];
                $title = Title::newFromText( $titleStr );
-               if ( $this->linkToDiffs and isset( $info['revid'] ) ) {
+               if ( $this->linkToDiffs && isset( $info['revid'] ) ) {
                        $titleUrl = $title->getFullURL( array( 'diff' => $info['revid'] ) );
                } else {
                        $titleUrl = $title->getFullURL();