mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Merge pull request #2471 from dewekk/fix-load-v2
템플릿 v2에서 load 지시자의 변수가 잘못 전달되는 문제 수정
This commit is contained in:
commit
ff499c56e6
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