diff --git a/src/Configuration/DefaultConfigPass.php b/src/Configuration/DefaultConfigPass.php index 915ecb27d8..022ded7d62 100644 --- a/src/Configuration/DefaultConfigPass.php +++ b/src/Configuration/DefaultConfigPass.php @@ -55,7 +55,7 @@ private function processDefaultMenuItem(array $backendConfig) { $defaultMenuItem = $this->findDefaultMenuItem($backendConfig['design']['menu']); - if ('empty' === $defaultMenuItem['type']) { + if (is_array($defaultMenuItem) && 'empty' === $defaultMenuItem['type']) { throw new \RuntimeException(sprintf('The "menu" configuration sets "%s" as the default item, which is not possible because its type is "empty" and it cannot redirect to a valid URL.', $defaultMenuItem['label'])); } diff --git a/src/EasyAdminBundle.php b/src/EasyAdminBundle.php index 23c138f1f1..f7d454b170 100644 --- a/src/EasyAdminBundle.php +++ b/src/EasyAdminBundle.php @@ -22,7 +22,7 @@ */ class EasyAdminBundle extends Bundle { - const VERSION = '1.17.24'; + const VERSION = '1.17.25'; public function build(ContainerBuilder $container) {