Fixed variable
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Nov 2013 15:32:17 +0000 (16:32 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Nov 2013 15:32:17 +0000 (16:32 +0100)
wcfsetup/install/files/lib/system/option/SelectOptionType.class.php

index 420a52e3e7c6b66049c01e658e35348c4a8daa99..6ecd3b4e32dcca990e98e1116957b9720751bc75 100644 (file)
@@ -53,7 +53,7 @@ class SelectOptionType extends RadioButtonOptionType {
                        foreach ($options as $key => $optionData) {
                                $tmp = explode(',', $optionData);
                                
-                               foreach ($optionData as $item) {
+                               foreach ($tmp as $item) {
                                        if ($item{0} == '!') {
                                                if (!empty($disableOptions)) $disableOptions .= ',';
                                                $disableOptions .= "{ value: '".$key."', option: '".mb_substr($item, 1)."' }";