Browse Source

Tylerisation

philippe_mingo 23 years ago
parent
commit
47e7812ade
2 changed files with 4 additions and 2 deletions
  1. 3 1
      functions/smtp.php
  2. 1 1
      src/search.php

+ 3 - 1
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);

+ 1 - 1
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') {