Browse Source

fix starttls check

tokul 19 years ago
parent
commit
8b98e1c50f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/configtest.php

+ 1 - 1
src/configtest.php

@@ -392,7 +392,7 @@ while ($line=fgets($stream, 1024)){
 /* don't display capabilities before STARTTLS */
 if ($use_imap_tls==2 && stristr($capline, 'STARTTLS') === false) {
     do_err('Your server doesn\'t support STARTTLS.');
-} else {
+} elseif($use_imap_tls==2) {
     /* try starting starttls */
     fwrite($stream,"A002 STARTTLS\r\n");
     $starttls_line=fgets($stream, 1024);