Merge pull request #90 from diemuzi/patch-1
authorEvan Coury <me@evancoury.com>
Sat, 14 Jul 2012 02:41:34 +0000 (19:41 -0700)
committerEvan Coury <me@evancoury.com>
Sat, 14 Jul 2012 02:41:34 +0000 (19:41 -0700)
Resolves assignment in condition warning

init_autoloader.php

index e014e03..d9f6042 100644 (file)
@@ -22,7 +22,7 @@ if (file_exists('vendor/autoload.php')) {
 }
 
 // Support for ZF2_PATH environment variable or git submodule
-if ($zf2Path = getenv('ZF2_PATH') ?: (is_dir('vendor/ZF2/library') ? 'vendor/ZF2/library' : false)) {
+if (($zf2Path = getenv('ZF2_PATH') ?: (is_dir('vendor/ZF2/library') ? 'vendor/ZF2/library' : false)) !== false) {
     if (isset($loader)) {
         $loader->add('Zend', $zf2Path . '/Zend');
     } else {