mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Always initialize extra_vars attribute
This commit is contained in:
parent
86118dbf50
commit
6727b124cd
2 changed files with 8 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ class AddonInfoParser extends BaseParser
|
|||
{
|
||||
$info->extra_vars = get_object_vars(self::_getExtraVars($xml->extra_vars, $lang, 'addon'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$info->extra_vars = [];
|
||||
}
|
||||
|
||||
// Prepare additional fields that will be filled in later.
|
||||
$info->is_enabled = (object)['pc' => false, 'mobile' => false];
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ class EditorComponentParser extends BaseParser
|
|||
{
|
||||
$info->extra_vars = self::_getExtraVars($xml->extra_vars, $lang, 'editor_component');
|
||||
}
|
||||
else
|
||||
{
|
||||
$info->extra_vars = new \stdClass;
|
||||
}
|
||||
|
||||
// Return the complete result.
|
||||
return $info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue