From e5a5ddffcd49243e5db151ed18ec7aff06bc493d Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Fri, 3 Mar 2023 04:35:44 +0000 Subject: [PATCH] Fix conditional email fallback text --- resources/views/emails/digest.blade.php | 2 +- resources/views/partials/checkins-list.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/emails/digest.blade.php b/resources/views/emails/digest.blade.php index f004ee8..77e52be 100644 --- a/resources/views/emails/digest.blade.php +++ b/resources/views/emails/digest.blade.php @@ -50,7 +50,7 @@

Checkins

@if($checkinsList)
    - @include('partials.checkins-list', array('email'=>true)) + @include('partials.checkins-list', ['email' => true])
@else

No new checkins

diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 5c5b3a3..0ebc3e6 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -11,7 +11,7 @@ $embed .= ''; $embed .= '

Your client doesn\'t support HTML video. Here is a link to the video instead.

'; $embed .= ''; - if ($email) { + if (isset($email)) { $embed .= '

If your email client doesn\'t support video embeds, here is a link to the file instead.

'; } } else { @@ -25,7 +25,7 @@ $embed .= ''; $embed .= '

Download OGG audio.

'; $embed .= ''; - if ($email) { + if (isset($email)) { $embed .= '

If your email client doesn\' support audio embeds, here is a link to the file instead.

'; } } else {