From 39f70012076285c814062a7acc96d107aeb7d343 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sun, 15 Dec 2024 16:41:46 +0300 Subject: [PATCH] Fix path checking error --- src/Service/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/Files.php b/src/Service/Files.php index 1a674ab..cfd59b4 100644 --- a/src/Service/Files.php +++ b/src/Service/Files.php @@ -52,7 +52,7 @@ protected function directory(string $path): false|string return rtrim($path, '\\/'); } - if (is_dir($path = realpath(base_path($path)))) { + if ($path && is_dir($path = realpath(base_path($path)))) { return rtrim($path, '\\/'); }