Skip to content

Commit bb88aaa

Browse files
Fix path checking error
1 parent 418aaab commit bb88aaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Service/Files.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ protected function directory(string $path): false|string
5252
return rtrim($path, '\\/');
5353
}
5454

55-
if (is_dir($path = realpath(base_path($path)))) {
55+
$path = realpath(base_path($path));
56+
57+
if ($path && is_dir($path)) {
5658
return rtrim($path, '\\/');
5759
}
5860

0 commit comments

Comments
 (0)