Verified Commit 9fc0ccea authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Fix(Snapshot) - Remove typo in condition.

Removes typo in condition entry, '-' was missing.
Showing with 1 addition and 1 deletion
+1 -1
...@@ -304,7 +304,7 @@ class SnapshotHandler ...@@ -304,7 +304,7 @@ class SnapshotHandler
} }
// calculate the epoch date on which snaps can be delete. // calculate the epoch date on which snaps can be delete.
if ($snapRetentionDays !== 1) { if ($snapRetentionDays !== -1) {
$todayMinusRetention = time() - ($snapRetentionDays * 24 * 60 * 60); $todayMinusRetention = time() - ($snapRetentionDays * 24 * 60 * 60);
$snapDateToDelete = strtotime(date('Y-m-d H:i:s', $todayMinusRetention)); $snapDateToDelete = strtotime(date('Y-m-d H:i:s', $todayMinusRetention));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment