Skip to content

Commit

Permalink
fixed condition statement and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oohnoitz committed Jan 22, 2015
1 parent ce6c97c commit 245ec63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 245ec63

Please sign in to comment.