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

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Oct 5, 2013
1 parent e594a79 commit abef78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/CmfMenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit abef78a

Please sign in to comment.