Sorry Philippe I get terrible warnings and I use language NL_nl, Is this the
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 16:38:16 +0000 (16:38 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 16:38:16 +0000 (16:38 +0000)
proper fix?

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3436 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/i18n.php

index e1f8a59..f7ad465 100644 (file)
@@ -19,7 +19,8 @@
 function charset_decode ($charset, $string) {
     global $languages, $squirrelmail_language;
 
-    if (function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
+    if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
+        function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
         $string = $languages[$squirrelmail_language]['XTRA_CODE']('decode', $string);
     }