From 767be0043a39d777303d34ac0cb0e525bc9e4fb5 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 28 Nov 2022 14:34:57 -0600 Subject: [PATCH] Add array index --- resources/views/partials/checkins-list.blade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 6cb08bd..2bb5b85 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -7,15 +7,15 @@ @if($checkin->note) @if(preg_match("/\[\[[^\]]+\]\]/", $checkin->note, $filepath)) - @if(preg_match("/\.webm/", $filepath)) + @if(preg_match("/\.webm/", $filepath[0])) - @elseif(preg_match("/\.ogg/", $filepath)) + @elseif(preg_match("/\.ogg/", $filepath[0])) @endif @else