projects
/
zf2.biz
/
application_blanche.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Resolves assignment in condition warning
[zf2.biz/application_blanche.git]
/
init_autoloader.php
diff --git
a/init_autoloader.php
b/init_autoloader.php
index
e014e03
..
d9f6042
100644
(file)
--- a/
init_autoloader.php
+++ b/
init_autoloader.php
@@
-22,7
+22,7
@@
if (file_exists('vendor/autoload.php')) {
}
// Support for ZF2_PATH environment variable or git submodule
}
// 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 {
if (isset($loader)) {
$loader->add('Zend', $zf2Path . '/Zend');
} else {