mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
데이터가 없는 언어 선택시 메뉴 모듈의 결과값이 깨어지는 오류 수정. 메뉴 캐시파일 재생성 필요
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5850 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
85dbb07492
commit
29ac8ad3de
1 changed files with 4 additions and 2 deletions
|
|
@ -149,8 +149,10 @@
|
|||
if($tmp) {
|
||||
$selected_lang = array();
|
||||
$rand_name = $tmp[Context::getLangType()];
|
||||
if(!$rand_name) $rand_name = array_shift(unserialize($name));
|
||||
foreach($tmp as $key => $val) $selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
|
||||
if(!$rand_name) $rand_name = array_shift($tmp);
|
||||
foreach($lang_supported as $key => $val) {
|
||||
$selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue