Assign the admin user to $SESSION['current']
This commit is contained in:
@@ -319,6 +319,7 @@ function removeScreenshotsWithMissingFiles()
|
|||||||
// access to delete these screenshots
|
// access to delete these screenshots
|
||||||
$oUser = new User();
|
$oUser = new User();
|
||||||
$oUser->iUserId = 1000;
|
$oUser->iUserId = 1000;
|
||||||
|
$_SESSION['current'] = $oUser;
|
||||||
|
|
||||||
// remove the screenshots with missing files
|
// remove the screenshots with missing files
|
||||||
foreach($aMissingScreenshotIds as $iScreenshotId)
|
foreach($aMissingScreenshotIds as $iScreenshotId)
|
||||||
|
|||||||
Reference in New Issue
Block a user