mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +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'));
|
$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.
|
// Prepare additional fields that will be filled in later.
|
||||||
$info->is_enabled = (object)['pc' => false, 'mobile' => false];
|
$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');
|
$info->extra_vars = self::_getExtraVars($xml->extra_vars, $lang, 'editor_component');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$info->extra_vars = new \stdClass;
|
||||||
|
}
|
||||||
|
|
||||||
// Return the complete result.
|
// Return the complete result.
|
||||||
return $info;
|
return $info;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue