Permalink
Browse files

fix parse ini option 'force_languages'

  • Loading branch information...
nao-pon committed Mar 5, 2014
1 parent 74a71bb commit f7ccb2b21274dfdbff012e2ab7d3c442986178a5
Showing with 5 additions and 1 deletion.
  1. +5 −1 xoops_trust_path/modules/xupdate/include/ModulesIniDadaSet.class.php
@@ -476,7 +476,11 @@ private function _createItemOptions( $item, $caller )
$item_arr['modinfo'] = $item['modinfo'] ;
}
if(isset($item['force_languages'])){
$item_arr['force_languages'] = array_map('trim', explode(',', trim($item['force_languages'])));
if (is_array($item['force_languages'])) {
$item_arr['force_languages'] = $item['force_languages'];
} else {
$item_arr['force_languages'] = array_map('trim', explode(',', trim($item['force_languages'])));
}
} else {
$item_arr['force_languages'] = array();
}

0 comments on commit f7ccb2b

Please sign in to comment.