From: Matthias Schmidt Date: Fri, 22 May 2015 18:05:45 +0000 (+0200) Subject: Fix deleting event listeners without inherit element X-Git-Tag: 2.1.5~44 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5be53ffec841192f22acc71711d3b0600967caac;p=GitHub%2FWoltLab%2FWCF.git Fix deleting event listeners without inherit element During installation, the inherit element is optional thus there is no need to require it for 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'] )); }