// 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
$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 -->";
}
* 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
+?>