Fix reported "Undefined index: environment"
Reported on error reporting server Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
2389c6a07b
commit
dce146f596
@ -66,7 +66,7 @@ class Template
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// It was reported that the config could not be loaded correctly
|
// It was reported that the config could not be loaded correctly
|
||||||
if (is_array($cfg) && $cfg['environment'] === 'development') {
|
if (is_array($cfg) && ($cfg['environment'] ?? '') === 'development') {
|
||||||
$twig->enableDebug();
|
$twig->enableDebug();
|
||||||
$twig->addExtension(new DebugExtension());
|
$twig->addExtension(new DebugExtension());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user