includeIfExists function now works properly(return false now)
parent
5701f60157
commit
2cb697a4bb
|
@ -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'))) {
|
||||
|
|
Loading…
Reference in New Issue