Skip to content

Commit 52b61ec

Browse files
committed
[1.4] fixed sfAutoloadAgain class when some registered autoloaders are plain functions or closures (closes #10075, patch from @CEikermann)
http://trac.symfony-project.org/changeset/33561
1 parent c74840c commit 52b61ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/autoload/sfAutoloadAgain.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function autoload($class)
6969
{
7070
foreach ($autoloads as $position => $autoload)
7171
{
72-
if ($this === $autoload[0])
72+
if (is_array($autoload) && $this === $autoload[0])
7373
{
7474
break;
7575
}

0 commit comments

Comments
 (0)