Fixes reload after new platform adding

main
Yasen Pramatarov 2025-02-23 00:02:15 +02:00
parent 66fb6bf576
commit 91aca75138
1 changed files with 2 additions and 4 deletions

View File

@ -161,11 +161,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$_SESSION['error'] = "Editing the platform failed. Error: $result"; $_SESSION['error'] = "Editing the platform failed. Error: $result";
} }
} }
if (!$isAjax) {
header('Location: ' . $redirectUrl); header('Location: ' . $redirectUrl);
exit; exit;
} }
}
} else { } else {
/** /**