1
0
Fork 0

includeIfExists function now works properly(return false now)

pull/1999/head
Pavel Savinov 2013-06-13 10:35:46 +11:00
parent 5701f60157
commit 2cb697a4bb
1 changed files with 1 additions and 3 deletions

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'))) {