planet 설정이 되지 않았을 경우 생기는 PHP Script 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6298 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-07 07:48:48 +00:00
parent 99e1e0d97b
commit 1b4c6c3b6f

View file

@ -19,7 +19,7 @@
$oPlanetModel = &getModel('planet');
$oModuleModel = &getModel('module');
$planet_config = $oPlanetModel->getPlanetConfig();
foreach($this->module_info as $key => $val) if(!isset($planet_config->{$key})) $planet_config->{$key} = $val;
if(count($this->module_info)) foreach($this->module_info as $key => $val) if(!isset($planet_config->{$key})) $planet_config->{$key} = $val;
Context::set('module_info',$this->module_info = $planet_config);
$current_module_info = Context::get('current_module_info');