Fix edge case for dynamic templates
This commit is contained in:
parent
5d65676659
commit
7fcbb64a15
|
@ -210,8 +210,8 @@ class Configuration implements ConfigurationInterface
|
|||
->then(function ($v) {
|
||||
$dt = array();
|
||||
foreach ($v['dynamic_templates'] as $key => $type) {
|
||||
if (is_numeric($key)) {
|
||||
$dt[$key] = $type;
|
||||
if (is_int($key)) {
|
||||
$dt[] = $type;
|
||||
} else {
|
||||
$dt[][$key] = $type;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue