mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1970 invalid default value for extravar of 'date' type
This commit is contained in:
parent
9aeafad607
commit
ba0e0f07d1
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ class ExtraItem
|
||||||
return nl2br($value);
|
return nl2br($value);
|
||||||
|
|
||||||
case 'date' :
|
case 'date' :
|
||||||
return sprintf('%s-%s-%s', substr($value, 0, 4), substr($value, 4, 2), substr($value, 6, 2));
|
return $value ? sprintf('%s-%s-%s', substr($value, 0, 4), substr($value, 4, 2), substr($value, 6, 2)) : '';
|
||||||
|
|
||||||
case 'language':
|
case 'language':
|
||||||
return Rhymix\Framework\Lang::getSupportedList()[$value]['name'];
|
return Rhymix\Framework\Lang::getSupportedList()[$value]['name'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue