From 9fc0ccea1bb922094fc85d2f6f7bb210e255e455 Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Thu, 20 Apr 2023 16:55:19 +0100 Subject: [PATCH] :ambulance: Fix(Snapshot) - Remove typo in condition. Removes typo in condition entry, '-' was missing. --- include/management/snapshot/class_SnapshotHandler.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/management/snapshot/class_SnapshotHandler.inc b/include/management/snapshot/class_SnapshotHandler.inc index 364932e08..61744b61d 100644 --- a/include/management/snapshot/class_SnapshotHandler.inc +++ b/include/management/snapshot/class_SnapshotHandler.inc @@ -304,7 +304,7 @@ class SnapshotHandler } // calculate the epoch date on which snaps can be delete. - if ($snapRetentionDays !== 1) { + if ($snapRetentionDays !== -1) { $todayMinusRetention = time() - ($snapRetentionDays * 24 * 60 * 60); $snapDateToDelete = strtotime(date('Y-m-d H:i:s', $todayMinusRetention)); -- GitLab