Browse Source

fixed warning

stekkel 22 years ago
parent
commit
37f4b81ceb
1 changed files with 2 additions and 1 deletions
  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 */
         /* retrieve the response and the message */
         $response = $response[$tag];
         $response = $response[$tag];
         $message  = $message[$tag];
         $message  = $message[$tag];
+	
         if (!empty($read[$tag])) {
         if (!empty($read[$tag])) {
             return $read[$tag][0];
             return $read[$tag][0];
         } else {
         } else {
@@ -433,7 +434,7 @@ function sqimap_read_data_list ($imap_stream, $tag, $handle_errors,
         break;
         break;
     case 'NO': 
     case 'NO': 
         /* ignore this error from M$ exchange, it is not fatal (aka bug) */
         /* 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);
             set_up_language($squirrelmail_language);
             require_once(SM_PATH . 'functions/display_messages.php');
             require_once(SM_PATH . 'functions/display_messages.php');
             $string = "<b><font color=$color[2]>\n" .
             $string = "<b><font color=$color[2]>\n" .