r76063 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76062‎ | r76063 | r76064 >
Date:23:47, 4 November 2010
Author:mah
Status:ok
Tags:
Comment:
don't fail where itemTemplate is filled with 0s
Modified paths:
  • /trunk/extensions/RSS/RSSParser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RSS/RSSParser.php
@@ -229,7 +229,7 @@
230230 */
231231 function renderFeed( $parser, $frame ) {
232232 $output = "";
233 - if ( $this->itemTemplate ) {
 233+ if ( isset( $this->itemTemplate ) ) {
234234 $headcnt = 0;
235235 if ( $this->reversed ) {
236236 $this->rss->items = array_reverse( $this->rss->items );

Status & tagging log