From 14c62c1211a082804a8c93de75449fbed9241920 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Wed, 13 Feb 2002 16:00:00 +0000 Subject: [PATCH] Tylerisation git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2435 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 4 +++- src/search.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 403f3bd7..d3c6de38 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -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); diff --git a/src/search.php b/src/search.php index bb98716a..78f3f7e7 100644 --- a/src/search.php +++ b/src/search.php @@ -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') { -- 2.25.1