diff --git a/DependencyInjection/CmfMenuExtension.php b/DependencyInjection/CmfMenuExtension.php index dc6840f4..8f04d43b 100644 --- a/DependencyInjection/CmfMenuExtension.php +++ b/DependencyInjection/CmfMenuExtension.php @@ -60,7 +60,7 @@ public function loadVoters($config, XmlFileLoader $loader, ContainerBuilder $con $container->removeDefinition('cmf_menu.current_item_voter.content_identity'); } - if (!array_key_exists('uri_prefix', $config['voters'])) { + if (isset($config['voters']) && !array_key_exists('uri_prefix', $config['voters'])) { $container->removeDefinition('cmf_menu.current_item_voter.uri_prefix'); } }