8000 [DoctrineBundle] fixes undefined index notice · johnnywalker/symfony@ad3fd30 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad3fd30

Browse files
committed
[DoctrineBundle] fixes undefined index notice
1 parent 885d927 commit ad3fd30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/DoctrineBundle/DependencyInjection/Compiler/RegisterEventListenersAndSubscribersPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function registerListener($listenerId, $instances)
5959
}
6060

6161
foreach ($cs as $connection) {
62-
if (!is_array($connections[$connection])) {
62+
if (!isset($connections[$connection]) || !is_array($connections[$connection])) {
6363
$connections[$connection] = array();
6464
}
6565
$connections[$connection][] = $attributes['event'];

0 commit comments

Comments
 (0)
0