diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-11-19 06:29:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 06:29:45 +0300 |
commit | 0d6cd2c6eed967609c801dbc3a60072d9b23a879 (patch) | |
tree | 9cd63b2a28bb22d9699971a87420ab88ddd59a90 /core/Plugin.php | |
parent | 39cc6347165b520e058981a47e10dd36e851cd8a (diff) |
When no deactivation date found, then rearchive as much as allowed (#16748)
Diffstat (limited to 'core/Plugin.php')
-rw-r--r-- | core/Plugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Plugin.php b/core/Plugin.php index a2c44a3582..97e7bcaff2 100644 --- a/core/Plugin.php +++ b/core/Plugin.php @@ -486,7 +486,7 @@ class Plugin if (empty($lastCronArchiveTime)) { $dateTime = $lastDeactivationTime; } else if (empty($lastDeactivationTime)) { - $dateTime = Date::factory($lastCronArchiveTime); + $dateTime = null; // use default earliest time } else { $lastCronArchiveTime = Date::factory($lastCronArchiveTime); $dateTime = $lastDeactivationTime->isEarlier($lastCronArchiveTime) ? $lastDeactivationTime : $lastCronArchiveTime; |