mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix errors in PHP 8.0 while copying module
This commit is contained in:
parent
a395d76d33
commit
39fa556531
2 changed files with 5 additions and 3 deletions
|
|
@ -152,6 +152,7 @@ class moduleAdminController extends module
|
|||
|
||||
if($tmpModuleSkinVars)
|
||||
{
|
||||
$moduleSkinVars = new stdClass;
|
||||
foreach($tmpModuleSkinVars as $key=>$value)
|
||||
{
|
||||
$moduleSkinVars->{$key} = $value->value;
|
||||
|
|
@ -160,6 +161,7 @@ class moduleAdminController extends module
|
|||
|
||||
if($tmpModuleMobileSkinVars)
|
||||
{
|
||||
$moduleMobileSkinVars = new stdClass;
|
||||
foreach($tmpModuleMobileSkinVars as $key=>$value)
|
||||
{
|
||||
$moduleMobileSkinVars->{$key} = $value->value;
|
||||
|
|
@ -221,8 +223,8 @@ class moduleAdminController extends module
|
|||
if(count($grant) > 0) $oModuleController->insertModuleGrants($module_srl, $grant);
|
||||
if($extra_vars) $oModuleController->insertModuleExtraVars($module_srl, $extra_vars);
|
||||
|
||||
if($moduleSkinVars) $oModuleController->insertModuleSkinVars($module_srl, $moduleSkinVars);
|
||||
if($moduleMobileSkinVars) $oModuleController->insertModuleMobileSkinVars($module_srl, $moduleMobileSkinVars);
|
||||
if(isset($moduleSkinVars)) $oModuleController->insertModuleSkinVars($module_srl, $moduleSkinVars);
|
||||
if(isset($moduleMobileSkinVars)) $oModuleController->insertModuleMobileSkinVars($module_srl, $moduleMobileSkinVars);
|
||||
|
||||
$triggerObj->moduleSrlList[] = $module_srl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@ class moduleController extends module
|
|||
}
|
||||
|
||||
getDestroyXeVars($obj);
|
||||
if(!$obj || !count($obj)) return new BaseObject();
|
||||
if(!$obj || !countobj($obj)) return new BaseObject();
|
||||
|
||||
$args = new stdClass;
|
||||
$args->module_srl = $module_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue