diff --git a/cron/cleanup.php b/cron/cleanup.php index b26f850..2e0bce6 100644 --- a/cron/cleanup.php +++ b/cron/cleanup.php @@ -319,6 +319,7 @@ function removeScreenshotsWithMissingFiles() // access to delete these screenshots $oUser = new User(); $oUser->iUserId = 1000; + $_SESSION['current'] = $oUser; // remove the screenshots with missing files foreach($aMissingScreenshotIds as $iScreenshotId)