r33831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33830‎ | r33831 | r33832 >
Date:12:32, 24 April 2008
Author:minuteelectron
Status:old
Tags:
Comment:
Actually get rid of the notice.
Modified paths:
  • /trunk/extensions/Babel/Babel.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/Babel.php
@@ -235,7 +235,7 @@
236236 * to ISO 639-1 correlation is implemented and a system to
237237 * also try and get messages from CLDR is implemented.
238238 */
239 - if( $names[ $code ] ) {
 239+ if( array_key_exists( $code, $names ) ) {
240240 $name = $names[ $code ];
241241 }
242242

Status & tagging log