From: Niklas Laxström Date: Sat, 26 Feb 2011 08:19:21 +0000 (+0000) Subject: Fix bug that caused "Non-string key given" exception. X-Git-Tag: 1.31.0-rc.0~31766 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=158dc1b3cd6a3efe373a54fe0e9b5002c9d2d2af;p=lhc%2Fweb%2Fwiklou.git Fix bug that caused "Non-string key given" exception. Broken since introducsed in r10810 almost six years ago. This proves that the exception in message caches is valid and covers errors. Tested that exception is no longer thrown. --- diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index 30da1743bd..e3d922c47e 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -118,7 +118,7 @@ class LanguageFi extends Language { if ( !is_numeric( $item ) ) { if ( count ( explode( '-', $item ) ) == 3 && strlen( $item ) == 10 ) { list( $yyyy, $mm, $dd ) = explode( '-', $item ); - $final .= ' ' . $this->date( "{$yyyy}{$mm}{$dd}00000000" ); + $final .= ' ' . $this->date( "{$yyyy}{$mm}{$dd}000000" ); continue; } if ( isset( $weekds[$item] ) ) {