From: Vincent Vanwaelscappel Date: Fri, 5 Jul 2019 13:38:59 +0000 (+0200) Subject: #2868 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e555915cef07a3d75c1fbe6df92243c91bff3c89;p=cubist_locale.git #2868 --- diff --git a/src/LocalizedList.php b/src/LocalizedList.php index 4c61c92..2dab6d0 100644 --- a/src/LocalizedList.php +++ b/src/LocalizedList.php @@ -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;