浏览代码

fixed warning

stekkel 22 年之前
父节点
当前提交
37f4b81ceb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      functions/imap_general.php

+ 2 - 1
functions/imap_general.php

@@ -69,6 +69,7 @@ function sqimap_run_command ($imap_stream, $query, $handle_errors, &$response,
         /* retrieve the response and the message */
         $response = $response[$tag];
         $message  = $message[$tag];
+	
         if (!empty($read[$tag])) {
             return $read[$tag][0];
         } else {
@@ -433,7 +434,7 @@ function sqimap_read_data_list ($imap_stream, $tag, $handle_errors,
         break;
     case 'NO': 
         /* ignore this error from M$ exchange, it is not fatal (aka bug) */
-        if (strstr($message, 'command resulted in') === false) {
+        if (strstr($message[$tag], 'command resulted in') === false) {
             set_up_language($squirrelmail_language);
             require_once(SM_PATH . 'functions/display_messages.php');
             $string = "<b><font color=$color[2]>\n" .