From 9d35df1b54646a042a72cecb2fd9aaf18d81d6fc Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 15 Jun 2007 04:54:57 +0000 Subject: [PATCH] Assign the admin user to $SESSION['current'] --- cron/cleanup.php | 1 + 1 file changed, 1 insertion(+) 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)