Skip to content

Commit

Permalink
MDL-60390 tool_messageinboud: not strict index comparision
Browse files Browse the repository at this point in the history
This is something that changed in the upgraded Horde library. structure->findBody() returns string but structure->contentTypeMap is indexed with ints
  • Loading branch information
marinaglancy committed Oct 26, 2017
1 parent 9644c0e commit 69e89f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tool/messageinbound/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,10 @@ private function process_message_data_body(
'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)) {
Expand Down

0 comments on commit 69e89f4

Please sign in to comment.