瀏覽代碼

Remove extraneous reset

pdontthink 1 年之前
父節點
當前提交
b0cd6a2d1c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/imap_messages.php

+ 1 - 1
functions/imap_messages.php

@@ -117,7 +117,7 @@ function sqimap_toggle_flag($imap_stream, $id, $flag, $set, $handle_errors) {
     // some broken IMAP servers do not return UID elements on UID STORE
     // if this is the case, then we need to do a UID FETCH
     if (!empty($parseFetchResults)
-     && !isset(reset($parseFetchResults)['UID'])) {
+     && !isset($parseFetchResults)['UID']) {
         $aResponse = sqimap_run_command_list($imap_stream, "FETCH $msgs_id (FLAGS)", $handle_errors, $response, $message, TRUE);
         $parseFetchResults = parseFetch($aResponse,$aMessageList);
     }