mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 462 when recreate cache file, show foreach warning
this bug fixed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9635 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
10ddc990b3
commit
cbaa09ea3d
1 changed files with 10 additions and 6 deletions
|
|
@ -177,16 +177,20 @@
|
|||
$selected_lang = array();
|
||||
$rand_name = $tmp[Context::getLangType()];
|
||||
if(!$rand_name) $rand_name = array_shift($tmp);
|
||||
foreach($lang_supported as $key => $val) {
|
||||
$selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
|
||||
}
|
||||
if(is_array($lang_supported))
|
||||
{
|
||||
foreach($lang_supported as $key => $val)
|
||||
$selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$output = array();
|
||||
foreach($lang_supported as $key => $val) {
|
||||
$output[$key] = $selected_lang[$key]?$selected_lang[$key]:$name;
|
||||
}
|
||||
if(is_array($lang_supported))
|
||||
{
|
||||
foreach($lang_supported as $key => $val)
|
||||
$output[$key] = $selected_lang[$key]?$selected_lang[$key]:$name;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue