diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/CronArchive.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index d96a0a4ae8..441ab6dc80 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -1237,7 +1237,7 @@ class CronArchive { $timezones = $this->getTimezonesHavingNewDay(); $websiteDayHasFinishedSinceLastRun = APISitesManager::getInstance()->getSitesIdFromTimezones($timezones); - $websiteDayHasFinishedSinceLastRun = array_diff($websiteDayHasFinishedSinceLastRun, $websiteIds); + $websiteDayHasFinishedSinceLastRun = array_intersect($websiteDayHasFinishedSinceLastRun, $websiteIds); $this->websiteDayHasFinishedSinceLastRun = $websiteDayHasFinishedSinceLastRun; if (count($websiteDayHasFinishedSinceLastRun) > 0) { |