Index: trunk/extensions/WikimediaMaintenance/dumpInterwiki.php |
— | — | @@ -259,8 +259,9 @@ |
260 | 260 | * @param $source |
261 | 261 | */ |
262 | 262 | function makeLink( $entry, $source ) { |
263 | | - if ( isset( $this->prefixRewrites[$source] ) && isset( $this->prefixRewrites[$source][$entry[0]] ) ) |
| 263 | + if ( isset( $this->prefixRewrites[$source] ) && isset( $entry[0] ) && isset( $this->prefixRewrites[$source][$entry[0]] ) ) { |
264 | 264 | $entry[0] = $this->prefixRewrites[$source][$entry[0]]; |
| 265 | + } |
265 | 266 | |
266 | 267 | if ( !array_key_exists( "iw_prefix", $entry ) ) { |
267 | 268 | $entry = array( "iw_prefix" => $entry[0], "iw_url" => $entry[1], "iw_local" => $entry[2] ); |