Index: trunk/extensions/DumpHTML/SkinOffline.php |
— | — | @@ -31,8 +31,13 @@ |
32 | 32 | foreach ( $badMessages as $msg ) { |
33 | 33 | $badUrls[] = self::makeInternalOrExternalUrl( wfMsgForContent( $msg ) ); |
34 | 34 | } |
35 | | - |
36 | 35 | foreach ( $sections as $heading => $section ) { |
| 36 | + if (!is_array($section)) { |
| 37 | + // A raw HTML chunk, such as provided by Collection ext. |
| 38 | + // Just ignore these so they don't explode. |
| 39 | + unset( $sections[$heading] ); |
| 40 | + continue; |
| 41 | + } |
37 | 42 | foreach ( $section as $index => $link ) { |
38 | 43 | if ( in_array( $link['href'], $badUrls ) ) { |
39 | 44 | unset( $sections[$heading][$index] ); |