@@ -476,7 +476,9 @@ function sendSMTP($t, $c, $b, $subject, $body, $more_headers) {
exit;
}
$tmp = fgets($smtpConnection, 1024);
- if (errorCheck($tmp, $smtpConnection)!=5) return(0);
+ if (errorCheck($tmp, $smtpConnection)!=5) {
+ return(0);
+ }
$to_list = getLineOfAddrs($to);
$cc_list = getLineOfAddrs($cc);
@@ -164,7 +164,7 @@ $boxes = sqimap_mailbox_list($imapConnection);
/* set current mailbox to INBOX if none was selected or if page
was called to search all folders. */
-if ($mailbox == 'None' || $mailbox == '' ) {
+if ( !isset($mailbox) || $mailbox == 'None' || $mailbox == '' ) {
$mailbox = $boxes[0]['unformatted'];
if ($mailbox == 'All Folders') {