Skip to content

Commit b93c8d7

Browse files
committed
Fix path checking for the existence of a namespaced helper file
1 parent 0bc67db commit b93c8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ function helper($filenames): void
598598
if (str_contains($filename, '\\')) {
599599
$path = $loader->locateFile($filename, 'Helpers');
600600

601-
if ($path !== '') {
601+
if (!$path) {
602602
throw FileNotFoundException::forFileNotFound($filename);
603603
}
604604

0 commit comments

Comments
 (0)