Resolves assignment in condition warning
authorSammie S. Taunton <diemuzi@gmail.com>
Fri, 13 Jul 2012 23:38:54 +0000 (18:38 -0500)
committerSammie S. Taunton <diemuzi@gmail.com>
Fri, 13 Jul 2012 23:38:54 +0000 (18:38 -0500)
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 {