Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
Fixed the profiler panel when To: or From: headers are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Mar 7, 2018
1 parent 7064cd6 commit cd84320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Collector/swiftmailer.html.twig
Expand Up @@ -190,10 +190,10 @@
<div class="row">
<div class="col col-4">
<span class="label">From</span>
<pre class="prewrap">{{ message.headers.get('from').toString|replace({'From:': ''}) }}</pre>
<pre class="prewrap">{{ (message.headers.get('from').toString ?? '(empty)')|replace({'From:': ''}) }}</pre>

<span class="label">To</span>
<pre class="prewrap">{{ message.headers.get('to').toString|replace({'To:': ''}) }}</pre>
<pre class="prewrap">{{ (message.headers.get('to').toString ?? '(empty)')|replace({'To:': ''}) }}</pre>
</div>
<div class="col">
<span class="label">Headers</span>
Expand Down

0 comments on commit cd84320

Please sign in to comment.