mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1298 array/object confusion in point module
This commit is contained in:
parent
55f7898dc9
commit
5cd1cc53a5
3 changed files with 19 additions and 3 deletions
|
|
@ -41,6 +41,7 @@ class pointView extends point
|
|||
$module_config = $oModuleModel->getModulePartConfig('point', $current_module_srl);
|
||||
if(!$module_config)
|
||||
{
|
||||
$module_config = array();
|
||||
$module_config['insert_document'] = $config->insert_document;
|
||||
$module_config['insert_comment'] = $config->insert_comment;
|
||||
$module_config['upload_file'] = $config->upload_file;
|
||||
|
|
@ -51,6 +52,10 @@ class pointView extends point
|
|||
$module_config['voted_comment'] = $config->voted_comment;
|
||||
$module_config['blamed_comment'] = $config->blamed_comment;
|
||||
}
|
||||
elseif(is_object($module_config))
|
||||
{
|
||||
$module_config = get_object_vars($module_config);
|
||||
}
|
||||
}
|
||||
|
||||
$module_config['module_srl'] = $current_module_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue