Merge pull request #109 from erik-landvall/patch-1
[zf2.biz/application_blanche.git] / init_autoloader.php
index c9beed6..d9f6042 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+/**
+ * Zend Framework (http://framework.zend.com/)
+ *
+ * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license   http://framework.zend.com/license/new-bsd New BSD License
+ */
 
 /**
  * This autoloading setup is really more complicated than it needs to be for most
@@ -15,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 {