mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Improve backward compatibility with old widgets
This commit is contained in:
parent
4eebbf36b5
commit
cbf9cb8ccc
1 changed files with 2 additions and 2 deletions
|
|
@ -434,7 +434,7 @@ class WidgetController extends Widget
|
||||||
{
|
{
|
||||||
if (!isset($args->{$key}))
|
if (!isset($args->{$key}))
|
||||||
{
|
{
|
||||||
$args->{$key} = $val->default;
|
$args->{$key} = $val->default !== '' ? $val->default : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -465,7 +465,7 @@ class WidgetController extends Widget
|
||||||
{
|
{
|
||||||
if (!isset($args->{$key}))
|
if (!isset($args->{$key}))
|
||||||
{
|
{
|
||||||
$args->{$key} = $val->default;
|
$args->{$key} = $val->default !== '' ? $val->default : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue