Index: branches/wmf/1.18wmf1/maintenance/dumpInterwiki.php |
— | — | @@ -240,7 +240,12 @@ |
241 | 241 | array_key_exists( $entry['iw_prefix'], $this->prefixRewrites[$source] ) ) { |
242 | 242 | $entry['iw_prefix'] = $this->prefixRewrites[$source][$entry['iw_prefix']]; |
243 | 243 | } |
244 | | - |
| 244 | + if ( !array_key_exists( "iw_local", $entry ) ) { |
| 245 | + $entry["iw_local"] = 0; |
| 246 | + } |
| 247 | + if ( !array_key_exists( "iw_url", $entry ) ) { |
| 248 | + $entry["iw_url"] = ''; |
| 249 | + } |
245 | 250 | if ( $this->dbFile ) { |
246 | 251 | $this->dbFile->set( "{$source}:{$entry['iw_prefix']}", trim( "{$entry['iw_local']} {$entry['iw_url']}" ) ); |
247 | 252 | } else { |