From a9e46e67aea87025743cfc9537700c48c2a4dc17 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 5 Feb 2015 19:39:55 +0100 Subject: [PATCH] Changed session owner to 'system' during execution of cronjobs --- .../install/files/lib/data/cronjob/CronjobAction.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php index cdc6d811cd..0d69922926 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php @@ -1,6 +1,7 @@ changeUser(new User(null, array('userID' => 0, 'username' => 'System')), true); + WCF::getSession()->disableUpdate(); + CronjobScheduler::getInstance()->executeCronjobs(); } } -- 2.20.1