Fixed check for optional element
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jun 2013 12:50:04 +0000 (14:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jun 2013 12:50:04 +0000 (14:50 +0200)
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php

index 991a5759ea305c5fcac87b9e5707eabc705aebd3..901c633ea0f649cfdd0bca9929a2a9eda714767e 100644 (file)
@@ -90,7 +90,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
                        'attributes' => (isset($data['elements']['attributes']) ? $data['elements']['attributes'] : array()),
                        'className' => (!empty($data['elements']['classname']) ? $data['elements']['classname'] : ''),
                        'isSourceCode' => (!empty($data['elements']['sourcecode']) ? 1 : 0),
-                       'buttonLabel' => (!empty($data['elements']['buttonlabel']) ? $data['elements']['buttonlabel'] : '')
+                       'buttonLabel' => (isset($data['elements']['buttonlabel']) ? $data['elements']['buttonlabel'] : '')
                );
                
                if ($data['wysiwygIcon'] && $data['buttonLabel']) {