Merge pull request #2471 from dewekk/fix-load-v2

템플릿 v2에서 load 지시자의 변수가 잘못 전달되는 문제 수정
This commit is contained in:
Kijin Sung 2025-01-16 12:57:55 +09:00 committed by GitHub
commit ff499c56e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;