Index: trunk/extensions/IndexFunction/IndexFunction_body.php |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | static function doIndexes( &$out, $parseroutput ) { |
218 | 218 | global $wgTitle; |
219 | 219 | if ( !isset($parseroutput->mIndexes) ) { |
220 | | - return true; |
| 220 | + $parseroutput->mIndexes = array(); |
221 | 221 | } |
222 | 222 | if ( $parseroutput->getProperty( 'preview' ) ) { |
223 | 223 | return true; |
— | — | @@ -234,7 +234,7 @@ |
235 | 235 | } |
236 | 236 | $toAdd = wfArrayDiff2( $parseroutput->mIndexes, $current ); |
237 | 237 | $toRem = wfArrayDiff2( $current, $parseroutput->mIndexes ); |
238 | | - if ( true ) { |
| 238 | + if ( $toAdd || $toRem ) { |
239 | 239 | $dbw->begin( __METHOD__ ); |
240 | 240 | if ( $toRem ) { |
241 | 241 | $delCond = "in_from = $pageid AND ("; |