From a1e855dfc72cd43bf781b84e9c54027278685051 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 30 Nov 2015 14:50:28 +0100 Subject: [PATCH] Fixed variable reference --- .../package/plugin/CronjobPackageInstallationPlugin.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php index 70bf865a5c..ac5527ab2f 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php @@ -106,14 +106,14 @@ class CronjobPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu $cronjob = parent::import($row, $data); - // update event listener name + // update cronjob name if (!$cronjob->cronjobName) { $cronjobEditor = new CronjobEditor($cronjob); $cronjobEditor->update(array( 'cronjobName' => Cronjob::AUTOMATIC_NAME_PREFIX.$cronjob->cronjobID )); - $cronjob = new Cronjob($cronjob->listenerID); + $cronjob = new Cronjob($cronjob->cronjobID); } return $cronjob; -- 2.20.1