mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
import a file config, check if it is a object and run clone
This commit is contained in:
parent
3e4a96eb17
commit
ea381a46c6
1 changed files with 3 additions and 1 deletions
|
|
@ -284,7 +284,9 @@ class fileModel extends file
|
|||
function getFileConfig($module_srl = null)
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$config = clone $oModuleModel->getModuleConfig('file');
|
||||
$config = $oModuleModel->getModuleConfig('file');
|
||||
|
||||
$config = is_object($config) ? clone $config : new stdClass();
|
||||
if($module_srl)
|
||||
{
|
||||
$module_config = $oModuleModel->getModulePartConfig('file', $module_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue