Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -337,7 +337,7 @@ |
338 | 338 | } |
339 | 339 | |
340 | 340 | $langDisplay = $langNames[$lang]; |
341 | | - if ( strlen( $localLanguageNames[$lang] ) && $langDisplay != $localLanguageNames[$lang] ) { |
| 341 | + if ( isset( $localLanguageNames[$lang] ) && strlen( $localLanguageNames[$lang] ) && $langDisplay != $localLanguageNames[$lang] ) { |
342 | 342 | $langDisplay .= ' (' . $localLanguageNames[$lang] . ')'; |
343 | 343 | } |
344 | 344 | $s .= '<td>' . $anchor . Xml::element( 'strong', $attribs, $langDisplay ) . '</td>'; |