From 240c96a185d707028496dc071d14d93cb60f1cd8 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Mon, 4 Jan 2016 19:44:15 +0000 Subject: [PATCH] #267 remove warning due to junk dirs being inside a language/xx one --- application/hooks/load_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/hooks/load_config.php b/application/hooks/load_config.php index 57b487684..d5eff79ce 100644 --- a/application/hooks/load_config.php +++ b/application/hooks/load_config.php @@ -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); }