Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14023781
D13990.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
893 B
Referenced Files
None
Subscribers
None
D13990.id.diff
View Options
diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
--- a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
+++ b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
@@ -10,7 +10,7 @@
const RETRY_DELAY = 5;
protected $actorPHID;
- protected $parameters;
+ protected $parameters = array();
protected $status;
protected $message;
protected $relatedPHID;
@@ -69,6 +69,13 @@
}
protected function getParam($param, $default = null) {
+ // Some old mail was saved without parameters because no parameters were
+ // set or encoding failed. Recover in these cases so we can perform
+ // mail migrations, see T9251.
+ if (!is_array($this->parameters)) {
+ $this->parameters = array();
+ }
+
return idx($this->parameters, $param, $default);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 3:47 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737789
Default Alt Text
D13990.id.diff (893 B)
Attached To
Mode
D13990: Fix mail parameter error with old migrations
Attached
Detach File
Event Timeline
Log In to Comment