Pārlūkot izejas kodu

Quelch PHP notice. Spotted by James Pooton.

pdontthink 18 gadi atpakaļ
vecāks
revīzija
2a4feaf852
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      functions/imap_messages.php

+ 1 - 2
functions/imap_messages.php

@@ -335,6 +335,7 @@ function get_thread_sort($imap_stream, $search='ALL') {
     } elseif ($response == 'BAD') {
         sqm_trigger_imap_error('SQM_IMAP_NO_THREAD',$query, $response, $message);
     }
+    $sThreadResponse = '';
     if (isset($sRead[0])) {
         for ($i=0,$iCnt=count($sRead);$i<$iCnt;++$i) {
             if (preg_match("/^\* THREAD (.+)$/", $sRead[$i], $aMatch)) {
@@ -342,8 +343,6 @@ function get_thread_sort($imap_stream, $search='ALL') {
                 break;
             }
         }
-    } else {
-        $sThreadResponse = "";
     }
     unset($sRead);