Added check for db file as well as config file. cleaned up process

This commit is contained in:
color.diff=auto
2021-03-26 08:45:33 -06:00
parent b28a59c313
commit ac7682b62c
3 changed files with 5 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ ini_set('log_errors', 1);
include "includes.php";
if (file_exists("d2im.conf")) {
if (file_exists("d2im.conf") && (file_exists($config['modname'].".db"))){
if (is_dir($config['path'])) {
define('TXT_PATH', $config['path']);