[Install] Check if directory exists if not exit install process

This commit is contained in:
Peter Goodhall
2021-07-20 20:31:48 +01:00
parent e93884a367
commit 431122d22e

View File

@@ -25,8 +25,18 @@ class Core {
$counter++;
}
if($data['directory'] != "") {
if (file_exists("../".$data['directory'])) {
//pass folders real
$counter++;
} else {
echo "Directory ".$data['directory']." cannot be found";
exit;
}
}
// Check if all the required fields have been entered
if($counter == '3') {
if($counter == '4') {
return true;
}
else {