#267 remove warning due to junk dirs being inside a language/xx one

This commit is contained in:
FrancescoUK committed 2016-01-04 19:44:15 +00:00
1 parent 810000e37c
commit 240c96a185
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ function load_config()
$map = directory_map('./application/language/' . $language);
foreach($map as $file)
{
if ( substr(strrchr($file,'.'),1) == "php")
if ( !is_array($file) && substr(strrchr($file,'.'), 1) == "php")
{
$CI->lang->load( str_replace( '_lang.php', '', $file ), $language);
}