Fix deleting event listeners without inherit element
authorMatthias Schmidt <gravatronics@live.com>
Fri, 22 May 2015 18:05:45 +0000 (20:05 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 22 May 2015 18:05:45 +0000 (20:05 +0200)
During installation, the inherit element is optional thus there is no
need to require it for deletion.

wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php

index 226bde24ffc9b6fe5334aeadd4e476d0d3fa106f..d07470bc1a6e50b1b8013373caced5a4c62f0140 100644 (file)
@@ -42,7 +42,7 @@ class EventListenerPackageInstallationPlugin extends AbstractXMLPackageInstallat
                                (isset($item['elements']['environment']) ? $item['elements']['environment'] : 'user'),
                                $item['elements']['eventclassname'],
                                $item['elements']['eventname'],
-                               $item['elements']['inherit'],
+                               (isset($data['elements']['inherit'])) ? $data['elements']['inherit'] : 0,
                                $item['elements']['listenerclassname']
                        ));
                }