This commit is contained in:
MatteoGheza 2021-06-11 09:17:44 +00:00
parent 94bff78fb8
commit 2deed9cc73
2 changed files with 7 additions and 5 deletions

View File

@ -19,7 +19,7 @@
"delight-im/auth": "^8.3.0",
"ulrichsg/getopt-php": "^4.0.0",
"nikic/fast-route": "^2.0@dev",
"spatie/array-to-xml": "3.0.0",
"spatie/array-to-xml": "^2.16",
"ezyang/htmlpurifier": "^4.13",
"brick/phonenumber": "^0.2.2",
"sentry/sdk": "^3.1",

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)