mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
Create default object in ModuleModel::loadSkinInfo
This commit is contained in:
parent
701a6c88d8
commit
47433841a8
1 changed files with 4 additions and 3 deletions
|
|
@ -1268,8 +1268,7 @@ class moduleModel extends module
|
|||
|
||||
foreach($extra_vars as $var)
|
||||
{
|
||||
unset($obj);
|
||||
unset($options);
|
||||
$options = array();
|
||||
|
||||
$group = $group->title->body;
|
||||
$name = $var->attrs->name;
|
||||
|
|
@ -1283,12 +1282,14 @@ class moduleModel extends module
|
|||
|
||||
for($i = 0; $i < $option_count; $i++)
|
||||
{
|
||||
$options[$i] = new stdClass();
|
||||
$options[$i]->title = $var->default[$i]->body;
|
||||
$options[$i]->value = $var->default[$i]->body;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$options[0] = new stdClass();
|
||||
$options[0]->title = $var->default->body;
|
||||
$options[0]->value = $var->default->body;
|
||||
}
|
||||
|
|
@ -1296,7 +1297,7 @@ class moduleModel extends module
|
|||
$width = $var->attrs->width;
|
||||
$height = $var->attrs->height;
|
||||
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
$obj->group = $group;
|
||||
$obj->title = $title;
|
||||
$obj->description = $description;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue