mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix missing default value when extravar is not migrated from previous version
This commit is contained in:
parent
67c0066f90
commit
b77fcb747d
1 changed files with 6 additions and 1 deletions
|
|
@ -190,10 +190,15 @@ class Value
|
|||
{
|
||||
return $this->default;
|
||||
}
|
||||
elseif (is_array($this->options))
|
||||
|
||||
if (is_array($this->options))
|
||||
{
|
||||
return $this->default;
|
||||
}
|
||||
elseif ($this->default)
|
||||
{
|
||||
return array_first($this->getOptions());
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue