Index: trunk/extensions/RSS/RSSHooks.php |
— | — | @@ -22,9 +22,9 @@ |
23 | 23 | static function renderRss( $input, $args, $parser, $frame ) { |
24 | 24 | global $wgRSSCacheAge, $wgRSSCacheCompare, $wgRSSNamespaces; |
25 | 25 | |
26 | | - if ( $wgRSSNamespaces !== null && is_array($wgRSSNamespaces) ) { |
| 26 | + if ( is_array( $wgRSSNamespaces ) && count( $wgRSSNamespaces ) ) { |
27 | 27 | $ns = $parser->getTitle()->getNamespace(); |
28 | | - $checkNS = array_flip($wgRSSNamespaces); |
| 28 | + $checkNS = array_flip( $wgRSSNamespaces ); |
29 | 29 | |
30 | 30 | if( !isset( $checkNS[$ns] ) ) { |
31 | 31 | return wfMsg( 'rss-ns-permission' ); |