Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit abef78a

Browse files
committed
fix warning
1 parent e594a79 commit abef78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/CmfMenuExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function loadVoters($config, XmlFileLoader $loader, ContainerBuilder $con
6060
$container->removeDefinition('cmf_menu.current_item_voter.content_identity');
6161
}
6262

63-
if (!array_key_exists('uri_prefix', $config['voters'])) {
63+
if (isset($config['voters']) && !array_key_exists('uri_prefix', $config['voters'])) {
6464
$container->removeDefinition('cmf_menu.current_item_voter.uri_prefix');
6565
}
6666
}

0 commit comments

Comments
 (0)