1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

includeIfExists function now works properly(return false now)

This commit is contained in:
Pavel Savinov 2013-06-13 10:35:46 +11:00
parent 5701f60157
commit 2cb697a4bb

View file

@ -12,9 +12,7 @@
function includeIfExists($file)
{
if (file_exists($file)) {
return include $file;
}
return file_exists($file)===true ? include $file : false;
}
if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {