From 80f30074abbd37b860fb2189c9135ad48a7efad1 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 12 Aug 2018 16:01:26 +0200 Subject: [PATCH] Attempt to minimise asset_url errors. --- utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility.php b/utility.php index 4f9b9311..6454b1c1 100644 --- a/utility.php +++ b/utility.php @@ -48,7 +48,7 @@ function asset_url(string $path): string { $realPath = realpath(__DIR__ . '/public/' . $path); - if ($realPath === false) { + if ($realPath === false || !file_exists($realPath)) { return $path; }