Skip to content

Commit

Permalink
Guard against missing config value / upgrade case
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang authored Aug 16, 2022
1 parent 19f0a78 commit 0567864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public function buildAndSendMessage(
$headers = $this->_prepareHeaders($header, $opts);

/* Add a Received header for the hop from browser to server. */
if ($conf['compose']['add_received_header']) {
if (!isset($conf['compose']['add_received_header']) || ($conf['compose']['add_received_header'] === true)) {
$headers->addHeaderOb(
Horde_Core_Mime_Headers_Received::createHordeHop()
);
Expand Down

0 comments on commit 0567864

Please sign in to comment.