mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #1559 error in PHP 8.0
This commit is contained in:
parent
c18e0a7225
commit
57b01e7914
1 changed files with 8 additions and 0 deletions
|
|
@ -1772,6 +1772,10 @@ class moduleModel extends module
|
||||||
|
|
||||||
$skinName = $designInfo->module->{$module_name}->{$target};
|
$skinName = $designInfo->module->{$module_name}->{$target};
|
||||||
}
|
}
|
||||||
|
if(!isset($designInfo))
|
||||||
|
{
|
||||||
|
$designInfo = new stdClass();
|
||||||
|
}
|
||||||
if(!$skinName)
|
if(!$skinName)
|
||||||
{
|
{
|
||||||
$dir = ($skin_type == 'M') ? 'm.skins/' : 'skins/';
|
$dir = ($skin_type == 'M') ? 'm.skins/' : 'skins/';
|
||||||
|
|
@ -1800,6 +1804,10 @@ class moduleModel extends module
|
||||||
|
|
||||||
if($updateCache && $skinName)
|
if($updateCache && $skinName)
|
||||||
{
|
{
|
||||||
|
if(!isset($designInfo->module))
|
||||||
|
{
|
||||||
|
$designInfo->module = new stdClass();
|
||||||
|
}
|
||||||
if(!isset($designInfo->module->{$module_name})) $designInfo->module->{$module_name} = new stdClass();
|
if(!isset($designInfo->module->{$module_name})) $designInfo->module->{$module_name} = new stdClass();
|
||||||
$designInfo->module->{$module_name}->{$target} = $skinName;
|
$designInfo->module->{$module_name}->{$target} = $skinName;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue