데이터가 없는 언어 선택시 메뉴 모듈의 결과값이 깨어지는 오류 수정. 메뉴 캐시파일 재생성 필요

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5850 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-12 01:43:51 +00:00
parent 85dbb07492
commit 29ac8ad3de

View file

@ -149,8 +149,10 @@
if($tmp) { if($tmp) {
$selected_lang = array(); $selected_lang = array();
$rand_name = $tmp[Context::getLangType()]; $rand_name = $tmp[Context::getLangType()];
if(!$rand_name) $rand_name = array_shift(unserialize($name)); if(!$rand_name) $rand_name = array_shift($tmp);
foreach($tmp as $key => $val) $selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name; foreach($lang_supported as $key => $val) {
$selected_lang[$key] = $tmp[$key]?$tmp[$key]:$rand_name;
}
} }
} }