From 5be53ffec841192f22acc71711d3b0600967caac Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 22 May 2015 20:05:45 +0200 Subject: [PATCH] Fix deleting event listeners without inherit element During installation, the inherit element is optional thus there is no need to require it for deletion. --- .../plugin/EventListenerPackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php index 226bde24ff..d07470bc1a 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php @@ -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'] )); } -- 2.20.1