Fix edge case for dynamic templates

This commit is contained in:
Tim Nagel 2014-07-01 18:02:30 +10:00
parent 5d65676659
commit 7fcbb64a15

View file

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