Merge branch '3.0'
authorAlexander Ebert <ebert@woltlab.com>
Fri, 22 Nov 2019 16:27:47 +0000 (17:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 22 Nov 2019 16:27:47 +0000 (17:27 +0100)
1  2 
wcfsetup/install/files/lib/data/option/Option.class.php
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php
wcfsetup/install/files/lib/system/option/CaptchaSelectOptionType.class.php
wcfsetup/install/files/lib/system/option/SelectOptionType.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php
wcfsetup/install/files/lib/util/StringUtil.class.php

index 56a28f29c6ce1dc3914bf3ebc5b1914e513c2b3c,73a249aa21b039fab83ff5f1282b388f00344893..edda82d02fbe9027483e96e4868708667aad305f
@@@ -108,10 -91,10 +108,10 @@@ class Option extends DatabaseObject 
                $disableOptions = $enableOptions = '';
                
                if (!empty($optionData)) {
 -                      $options = explode(',', $optionData);
 +                      $options = ArrayUtil::trim(explode(',', $optionData));
                        
                        foreach ($options as $item) {
-                               if ($item{0} == '!') {
+                               if ($item[0] == '!') {
                                        if (!empty($disableOptions)) $disableOptions .= ',';
                                        $disableOptions .= "'".mb_substr($item, 1)."' ";
                                }