do not clear data on empty input
parent
a0accaf710
commit
723f4d5a9d
|
@ -19,6 +19,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
|||
|
||||
$resticData = file_get_contents("php://input");
|
||||
$resticData = explode("\n", $resticData);
|
||||
if (count($resticData) <= 1) {
|
||||
exit();
|
||||
}
|
||||
$backups = [];
|
||||
foreach ($resticData as $snapshot) {
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue