Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / option / SelectOptionType.class.php
index 6574f1c1b9113ada39423deeabb4e0f407b13945..2c267815769efd51ed80d1f15d3386a2a7d0918a 100644 (file)
@@ -65,7 +65,7 @@ class SelectOptionType extends RadioButtonOptionType {
                                $tmp = explode(',', $optionData);
                                
                                foreach ($tmp as $item) {
-                                       if ($item{0} == '!') {
+                                       if ($item[0] == '!') {
                                                if (!empty($disableOptions)) $disableOptions .= ',';
                                                $disableOptions .= "{ value: '".$key."', option: '".mb_substr($item, 1)."' }";
                                        }