fixed warnings
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 16:44:14 +0000 (16:44 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 16:44:14 +0000 (16:44 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3437 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php
functions/mime.php

index 0ef018f..1a3b14c 100644 (file)
@@ -1206,7 +1206,8 @@ function processSubject($subject) {
     return $subject;
   }
   
-  if (function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
+  if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
+      function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
       return $languages[$squirrelmail_language]['XTRA_CODE']('strimwidth', $subject, $trim_val);
   }
   
index 144b7ed..7704e93 100644 (file)
@@ -508,7 +508,8 @@ function decodeBody($body, $encoding) {
      $body = base64_decode($body);
   }
 
-  if (function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
+  if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
+      function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) {
       $body = $languages[$squirrelmail_language]['XTRA_CODE']('decode', $body);
   }
 
@@ -527,7 +528,8 @@ function decodeHeader ($string, $utfencode=true) {
         $string = implode("\n", $string);
     }
 
-    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']('decodeheader', $string);
     }
 
@@ -566,7 +568,8 @@ function decodeHeader ($string, $utfencode=true) {
 function encodeHeader ($string) {
     global $default_charset, $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'])) {
         return  $languages[$squirrelmail_language]['XTRA_CODE']('encodeheader', $string);
     }