Fixed variable reference
authorAlexander Ebert <ebert@woltlab.com>
Mon, 30 Nov 2015 13:50:28 +0000 (14:50 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 30 Nov 2015 13:50:28 +0000 (14:50 +0100)
wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php

index 70bf865a5c1962fa8a7edfb236d218ff48f44e3b..ac5527ab2fda4705d867b0e2b2c9020741b8909b 100644 (file)
@@ -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;