This commit is contained in:
MatteoGheza 2021-06-11 09:28:52 +00:00
commit 4df3124c9c
1 changed files with 6 additions and 4 deletions

View File

@ -97,18 +97,20 @@ if (file_exists('../vendor/autoload.php')) {
try {
include '../vendor/autoload.php';
} catch (Exception $e) {
echo("Please install composer and run composer install (".$e.")");
if(is_cli()) {
echo($e);
exit(1);
} else {
exit();
}
die("Please install composer and run composer install (".$e);
}
} else {
echo("Please install composer and run composer install");
if(is_cli()) {
echo($e);
exit(1);
} else {
exit();
}
die("Please install composer and run composer install");
}
function checkConnection($host, $user, $password, $database, $return=false)