From 113e5e9d3fff9929a5b3feaae6217769d8d908d6 Mon Sep 17 00:00:00 2001 From: jmunro Date: Mon, 11 Feb 2002 19:22:04 +0000 Subject: [PATCH 1/1] fixed several warnings about Undefined vars git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2415 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 15 --------------- src/compose.php | 8 +++++++- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/functions/page_header.php b/functions/page_header.php index cbda7535..5ce41514 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -204,21 +204,6 @@ function compose_Header($color, $mailbox) { "document.forms[i-1].elements[pos].focus();\n". "}\n". "}\n"; - if ($compose_new_win == '1') { - $width= getPref($username, $datadir, 'editor_size', 76); - if ($width < 65) { - $pix_width = 560; - } - else { - $width = (.9*$width); - $pix_width = intval($width).'0'; - } - echo "function comp_in_new() {\n". - " var newwin = window.open(\"".$base_uri."src/compose.php\"". - ", \"compose_window\", \"width=".$pix_width.",height=650". - ",scrollbars=yes,resizable=yes\");\n". - "}\n"; - } echo "// -->\n". "\n"; $onload = "onLoad=\"checkForm();\""; diff --git a/src/compose.php b/src/compose.php index 78d16906..e0b50bbd 100644 --- a/src/compose.php +++ b/src/compose.php @@ -36,6 +36,12 @@ if (!isset($mailbox) || $mailbox == '' || ($mailbox == 'None')) { if (isset($draft)) { include_once ('../src/draft_actions.php'); + if (! isset($reply_id)) { + $reply_id = 0; + } + if (! isset($MDN)) { + $MDN = 'False'; + } if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id, $MDN)) { showInputForm(); exit(); @@ -494,7 +500,7 @@ function showInputForm () { } echo '' . "\n"; if ($compose_new_win == '1') { - echo ' '."\n"; + echo ' '."\n"; } if ($location_of_buttons == 'top') { showComposeButtonRow(); -- 2.25.1