From 2cb697a4bb4dc85c37a10fbb4a9bcb0c696860f0 Mon Sep 17 00:00:00 2001 From: Pavel Savinov Date: Thu, 13 Jun 2013 10:35:46 +1100 Subject: [PATCH] includeIfExists function now works properly(return false now) --- src/bootstrap.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bootstrap.php b/src/bootstrap.php index 941fbf867..787af1ef4 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -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'))) {