Browse Source

Fix for resume on draft breaking From: being a different identity.

jangliss 21 năm trước cách đây
mục cha
commit
ddfc027d3b
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      src/compose.php

+ 5 - 2
src/compose.php

@@ -663,6 +663,11 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
 
 
         $identity = '';
         $identity = '';
         $from_o = $orig_header->from;
         $from_o = $orig_header->from;
+        if (is_array($from_o)) {
+            if (isset($from_o[0])) {
+                $from_o = $from_o[0];
+            }
+        }
         if (is_object($from_o)) {
         if (is_object($from_o)) {
             $orig_from = $from_o->getAddress();
             $orig_from = $from_o->getAddress();
         } else {
         } else {
@@ -684,8 +689,6 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
             if ($identity_match) {
             if ($identity_match) {
                 $identity = $identity_match;
                 $identity = $identity_match;
             }
             }
-        // we need identiy here fore draft case #845290
-        // echo $identity."leer";
         }
         }
 
 
         switch ($action) {
         switch ($action) {