Skip to content

Commit c13f0e4

Browse files
committed
fix: Correct logic in ReplaceKey to check for forceCheck and window conditions
1 parent 6f0af9e commit c13f0e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emhttp/plugins/dynamix/include/ReplaceKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function check(bool $forceCheck = false)
175175

176176
$isWithinWindow = ($now >= $sevenDaysBefore && $now <= $sevenDaysAfter);
177177

178-
if ($forceCheck || $isWithinWindow) {
178+
if (!$forceCheck && !$isWithinWindow) {
179179
return;
180180
}
181181

0 commit comments

Comments
 (0)