diff --git a/application/helpers/hlp_common_helper.php b/application/helpers/hlp_common_helper.php index 75b26dc6f..ab67d70a1 100644 --- a/application/helpers/hlp_common_helper.php +++ b/application/helpers/hlp_common_helper.php @@ -371,7 +371,7 @@ function findResource($path, $resource, $subdir = false, $extraDir = null) // If entry is a directory but not the current and subdirectories should be loaded if ($subdir === true && $entry != '.' && $entry != '..' && is_dir($path.$entry)) { - if ($extension == null) + if ($extraDir == null) { $tmpPaths[] = $path.$entry.'/'; }