From aecb0e75fc04870582affbb19c2661d72a2ccb8a Mon Sep 17 00:00:00 2001 From: Albert Garcia Date: Wed, 12 Apr 2017 11:02:00 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20SIFO=E2=80=99s=20autoload=20with=20non-SI?= =?UTF-8?q?FO=20classes=20with=20namespaces=20that=20doesn=E2=80=99t=20exi?= =?UTF-8?q?sts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Sifo/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sifo/Config.php b/src/Sifo/Config.php index 51114710..7f37a334 100644 --- a/src/Sifo/Config.php +++ b/src/Sifo/Config.php @@ -186,7 +186,7 @@ public function getClassInfo( $class_type ) elseif( isset( $class_type[1] ) ) { $class_type = array_reverse( $class_type ); - $path = $classes[$class_type[0]][$class_type[1]]; + $path = isset($classes[$class_type[0]][$class_type[1]]) ? $classes[$class_type[0]][$class_type[1]] : null; } if ( isset( $classes[$class_type[0]] ) && !isset( $path ) )