From 61670a1c446b3b02dce00f73862b24018ff4502c Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 12 May 2018 21:21:44 +0200 Subject: [PATCH] [UPDATE] Print error if vendor libs are missing --- include/autoloader.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/autoloader.inc.php b/include/autoloader.inc.php index 7417731c..5bafd473 100644 --- a/include/autoloader.inc.php +++ b/include/autoloader.inc.php @@ -2,7 +2,11 @@ (SECURITY == "*)WT#&YHfd" && SECHASH_CHECK) ? die("public/index.php -> Set a new SECURITY value to continue") : 0; $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1; -require_once(INCLUDE_DIR . '/../vendor/autoload.php'); +if (file_exists(INCLUDE_DIR . '/../vendor/autoload.php')) { + require_once(INCLUDE_DIR . '/../vendor/autoload.php'); +} else { + die("Unable to load vendor libraries, please run `php composer.phar install` in root folder."); +} // Default classes require_once(INCLUDE_DIR . '/lib/KLogger.php');