diff --git a/system/Common.php b/system/Common.php index b647c9d247ad..c245bfb99c22 100644 --- a/system/Common.php +++ b/system/Common.php @@ -598,7 +598,7 @@ function helper($filenames): void if (str_contains($filename, '\\')) { $path = $loader->locateFile($filename, 'Helpers'); - if ($path !== '') { + if (!$path) { throw FileNotFoundException::forFileNotFound($filename); }