Mod switching fixed

This commit is contained in:
color.diff=auto
2021-05-03 04:15:48 -06:00
parent ad0ed9be30
commit 13568c5b74
3 changed files with 6 additions and 10 deletions

View File

@@ -68,7 +68,8 @@ if (file_exists(APP_DB)) {
$sql = "UPDATE `D2Modder` SET `lastused`=$time WHERE modname='{$_POST['modname']}'";
PDO_Execute($sql);
$_SESSION['modname'] = $mod['modname'];
$_SESSION['path'] = $mod['path'];
$_SESSION['path'] = $mod['path'];
header("Location: /");
}
}