Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -1222,7 +1222,10 @@ |
1223 | 1223 | # If one of the options' 'name' is int(0), it is automatically selected. |
1224 | 1224 | # because PHP sucks and things int(0) == 'some string'. |
1225 | 1225 | # Working around this by forcing all of them to strings. |
1226 | | - $options = array_map( 'strval', $this->mParams['options'] ); |
| 1226 | + $options = array_map( |
| 1227 | + create_function('$opt', 'return is_int($opt) ? strval($opt) : $opt;'), |
| 1228 | + $this->mParams['options'] |
| 1229 | + ); |
1227 | 1230 | |
1228 | 1231 | if ( !empty( $this->mParams['disabled'] ) ) { |
1229 | 1232 | $select->setAttribute( 'disabled', 'disabled' ); |