From 54524b5d79eac366e609d690c1ccc03d3f3dd783 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 1 Jun 2012 12:56:36 +0200 Subject: [PATCH] Fixed cronjobs being initialized within WCFSetup @BurntimeX: PACKAGE_ID is *always* defined, but resolves to "0" within WCFSetup --- 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 b5d6478486..a9f9dda1ab 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -653,7 +653,7 @@ class WCF { * Initialises the cronjobs. */ protected function initCronjobs() { - if (defined('PACKAGE_ID')) { + if (PACKAGE_ID) { self::getTPL()->assign('executeCronjobs', CronjobScheduler::getInstance()->getNextExec() < TIME_NOW); } } -- 2.20.1