From 245ec63abafeb23b3e7f8eea44bc643529b8ca8f Mon Sep 17 00:00:00 2001 From: Hung Tran Date: Wed, 21 Jan 2015 19:19:32 -0600 Subject: [PATCH] fixed condition statement and typo --- src/Package.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Package.php b/src/Package.php index e92fcfa..5fea0f0 100644 --- a/src/Package.php +++ b/src/Package.php @@ -119,8 +119,8 @@ public function enableAutoloader() $psr0 = $this->getConfig('autoload.psr-0', []); $psr4 = $this->getConfig('autoload.psr-4', []); - if (!empty($psr0) && !empty($psr4)) { - $loader = new \Composer\Autload\ClassLoader(); + if (!empty($psr0) || !empty($psr4)) { + $loader = new \Composer\Autoload\ClassLoader(); // load psr-0 foreach ($psr0 as $namespace => $path) {