Skip to content

A free open source IT asset/license management system

Weird syntax in layout.blade.php. Change the use of 'or' operator to the null coalesce operator (#6240)

Ivan Nieto309f1027451c
diff --git a/resources/views/vendor/mail/html/layout.blade.php b/resources/views/vendor/mail/html/layout.blade.php
index b2af14ec2e..4c537ac380 100644
--- a/resources/views/vendor/mail/html/layout.blade.php
+++ b/resources/views/vendor/mail/html/layout.blade.php
@@ -31,7 +31,7 @@
<tr>
<td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0">
- {{ $header or '' }}
+ {{ $header ?? '' }}
<!-- Email Body -->
<tr>
@@ -42,14 +42,14 @@
<td class="content-cell">
{{ Illuminate\Mail\Markdown::parse($slot) }}
- {{ $subcopy or '' }}
+ {{ $subcopy ?? '' }}
</td>
</tr>
</table>
</td>
</tr>
- {{ $footer or '' }}
+ {{ $footer ?? '' }}
</table>
</td>
@@ -57,3 +57,4 @@
</table>
</body>
</html>
+
\ No newline at end of file