r53439 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53438‎ | r53439 | r53440 >
Date:10:39, 18 July 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Avoid E_NOTICE on empty strings
Modified paths:
  • /trunk/phase3/languages/classes/LanguageTr.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageTr.php
@@ -7,7 +7,7 @@
88 */
99 class LanguageTr extends Language {
1010 function ucfirst ( $string ) {
11 - if ( $string[0] == 'i' ) {
 11+ if ( !empty($string) && $string[0] == 'i' ) {
1212 return 'İ' . substr( $string, 1 );
1313 } else {
1414 return parent::ucfirst( $string );

Status & tagging log