Skip to content

Commit

Permalink
Fix path checking error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Dec 15, 2024
1 parent 418aaab commit 39f7001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\/');
}

Expand Down

0 comments on commit 39f7001

Please sign in to comment.