Removed warnings
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 27 Oct 2001 17:47:03 +0000 (17:47 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 27 Oct 2001 17:47:03 +0000 (17:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1627 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php
functions/mime.php
src/left_main.php

index 43836e1ca5973f043ca00e413a76e80b2d2a4e41..088bedd66648e0fd5e29b1cae6354667e24c111a 100644 (file)
    // generic function to convert the msgs array into an HTML table
    function displayMessageArray($imapConnection, $numMessages, $startMessage, &$msgs, $msort, $mailbox, $sort, $color,$show_num) {
       global $folder_prefix, $sent_folder;
-      global $imapServerAddress;
+      global $imapServerAddress, $data_dir, $username, $use_mailbox_cache;
       global $index_order, $real_endMessage, $real_startMessage, $checkall;
 
       // if cache isn't already set, do it now
index 8720083c69fab8ba37267eec800d2ca0f6ea0f23..c9571e950e553a9b207f56fddcb6000523043bd4 100644 (file)
                             $ret .= '<b>' . _("Title:") . " </b>$title<br>\n";
                         $ret .= "<TABLE";
                         $i += 5;
+                       if (! isset($base))
+                          $base = '';
                         $ret .= stripEvent( $i, $j, $body, $id, $base );
                         //if( $bgcolor <> '' )
                             $ret .= " bgcolor=$bgcolor";
                     default:
                         // Following tags can contain some event handler, lets search it
                         stripComments( $i, $j, $body );
+                       if (! isset($base))
+                          $base = '';
                         $ret .= stripEvent( $i, $j, $body, $id, $base ) . '>';
                         // $ret .= "<!-- $tag detected -->";
                 }
index 4bb0e0b6165f2dc373ea30c31f0a58da0b091420..50155aa298f5846b2353cca9bb323534efb29946 100644 (file)
      * status and parent (or not parent) status for all children boxes.
      */
     function compute_folder_children(&$parbox, $boxcount) {
-        global $boxes;
+        global $boxes, $data_dir, $username;
         $nextbox = $parbox + 1;
 
         /* Retreive the name for the parent box. */
         $boxes[$parbox]['collapse'] = $collapse;
 
         /* Otherwise, get the name of the next box. */
-        $nextbox_name = $boxes[$nextbox]['unformatted'];
+       if (isset($boxes[$nextbox]['unformatted']))
+           $nextbox_name = $boxes[$nextbox]['unformatted'];
+       else
+          $nextbox_name = '';
 
         /* Compute any children boxes for this box. */
         while (($nextbox < $boxcount) &&
         $parbox = $nextbox;
     }
     echo "</BODY></HTML>\n";
-?>
\ No newline at end of file
+?>