do not clear data on empty input

master
Dirk Heilig 2023-09-15 19:05:21 +02:00
parent a0accaf710
commit 723f4d5a9d
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$resticData = file_get_contents("php://input"); $resticData = file_get_contents("php://input");
$resticData = explode("\n", $resticData); $resticData = explode("\n", $resticData);
if (count($resticData) <= 1) {
exit();
}
$backups = []; $backups = [];
foreach ($resticData as $snapshot) { foreach ($resticData as $snapshot) {
if ( if (