Commit 69e89f4a authored by Marina Glancy's avatar Marina Glancy
Browse files

MDL-60390 tool_messageinboud: not strict index comparision

This is something that changed in the upgraded Horde library. structure->findBody() returns string but structure->contentTypeMap is indexed with ints
parent 9644c0e8
......@@ -584,10 +584,10 @@ class manager {
'usestream' => true,
));
if ($part === $plainpartid) {
if ($part == $plainpartid) {
$contentplain = $this->process_message_part_body($messagedata, $partdata, $part);
} else if ($part === $htmlpartid) {
} else if ($part == $htmlpartid) {
$contenthtml = $this->process_message_part_body($messagedata, $partdata, $part);
} else if ($filename = $partdata->getName($part)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment