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) {
|
->then(function ($v) {
|
||||||
$dt = array();
|
$dt = array();
|
||||||
foreach ($v['dynamic_templates'] as $key => $type) {
|
foreach ($v['dynamic_templates'] as $key => $type) {
|
||||||
if (is_numeric($key)) {
|
if (is_int($key)) {
|
||||||
$dt[$key] = $type;
|
$dt[] = $type;
|
||||||
} else {
|
} else {
|
||||||
$dt[][$key] = $type;
|
$dt[][$key] = $type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue