]> _ Git - cubist_locale.git/commitdiff
#2868
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Jul 2019 13:38:59 +0000 (15:38 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Jul 2019 13:38:59 +0000 (15:38 +0200)
src/LocalizedList.php

index 4c61c9278a2dbbc76acd2f8a58bbe5c8482cd73d..2dab6d00db64938326348208e1885d37f522bc61 100644 (file)
@@ -21,7 +21,7 @@ class LocalizedList
     protected static function _getList($locale)
     {
         $f = base_path(str_replace('$locale', $locale, self::$_listPath));
-        if (!file_exists($f)) {
+        if (!file_exists($f) || !is_file($f)) {
             return [];
         }
         include $f;