From e53f7484f4ae3b9944c5a879792602ebe79cdc42 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 2 Apr 2001 17:03:42 +0000 Subject: [PATCH] * Removed warning messages git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1212 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/compose.php b/src/compose.php index 80a62db6..df2931d1 100644 --- a/src/compose.php +++ b/src/compose.php @@ -453,22 +453,31 @@ is_logged_in(); displayPageHeader($color, $mailbox); - for ($i=0; $i < count($send_to_search); $i++) { - if ($send_to) - $send_to .= ", "; - $send_to .= $send_to_search[$i]; + if (isset($send_to_search) && is_array($send_to_search)) + { + for ($i=0; $i < count($send_to_search); $i++) { + if ($send_to) + $send_to .= ", "; + $send_to .= $send_to_search[$i]; + } } - for ($i=0; $i < count($send_to_cc_search); $i++) { - if ($send_to_cc) - $send_to_cc .= ", "; - $send_to_cc .= $send_to_cc_search[$i]; + if (isset($send_to_cc_search) && is_array($send_to_cc_search)) + { + for ($i=0; $i < count($send_to_cc_search); $i++) { + if ($send_to_cc) + $send_to_cc .= ", "; + $send_to_cc .= $send_to_cc_search[$i]; + } } - for ($i=0; $i < count($send_to_bcc_search); $i++) { - if ($send_to_bcc) - $send_to_bcc .= ", "; - $send_to_bcc .= $send_to_bcc_search[$i]; + if (isset($send_to_bcc_search) && is_array($send_to_bcc_search)) + { + for ($i=0; $i < count($send_to_bcc_search); $i++) { + if ($send_to_bcc) + $send_to_bcc .= ", "; + $send_to_bcc .= $send_to_bcc_search[$i]; + } } showInputForm(); -- 2.25.1