From 08522d472ccb09f4c7f74975b5a5a31a27496c7b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 30 Nov 2014 11:37:20 +0100 Subject: [PATCH] Fixed cronjobs executing during offline mode --- wcfsetup/install/files/lib/system/WCF.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 1d9a2cd893..d19074626d 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -807,7 +807,7 @@ class WCF { */ protected function initCronjobs() { if (PACKAGE_ID) { - self::getTPL()->assign('executeCronjobs', CronjobScheduler::getInstance()->getNextExec() < TIME_NOW); + self::getTPL()->assign('executeCronjobs', (CronjobScheduler::getInstance()->getNextExec() < TIME_NOW && defined('OFFLINE') && OFFLINE)); } } } -- 2.20.1