Browse Source

Avoid failing if COMPOSER env var is empty, refs #1720

Jordi Boggiano 12 years ago
parent
commit
a0a9536d90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Factory.php

+ 1 - 1
src/Composer/Factory.php

@@ -118,7 +118,7 @@ class Factory
 
 
     public static function getComposerFile()
     public static function getComposerFile()
     {
     {
-        return getenv('COMPOSER') ?: 'composer.json';
+        return trim(getenv('COMPOSER')) ?: 'composer.json';
     }
     }
 
 
     public static function createAdditionalStyles()
     public static function createAdditionalStyles()