From 260766fb4e724336d1c82ec3cd09446561a9baec Mon Sep 17 00:00:00 2001 From: Jonathan Danse Date: Mon, 2 Oct 2023 16:10:03 +0200 Subject: [PATCH] Add test on autoload.php file exist --- fop_console.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fop_console.php b/fop_console.php index 6bd0c7e0..77592592 100644 --- a/fop_console.php +++ b/fop_console.php @@ -18,7 +18,10 @@ * */ -require_once 'vendor/autoload.php'; +$autoloadPath = __DIR__ . '/vendor/autoload.php'; +if (file_exists($autoloadPath)) { + require_once $autoloadPath; +} class Fop_Console extends Module {