mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
템플릿 v2에서 load 지시자의 변수가 잘못 전달되는 문제 수정
This commit is contained in:
parent
e9b035b423
commit
be64c9f5da
1 changed files with 2 additions and 2 deletions
|
|
@ -694,12 +694,12 @@ class Template
|
|||
}
|
||||
|
||||
// If any of the variables seems to be an array or object, it's $vars.
|
||||
if (!is_scalar($media_type))
|
||||
if (!is_scalar($media_type ?? ''))
|
||||
{
|
||||
$vars = $media_type;
|
||||
$media_type = null;
|
||||
}
|
||||
if (!is_scalar($index))
|
||||
if (!is_scalar($index ?? ''))
|
||||
{
|
||||
$vars = $index;
|
||||
$index = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue