Index: trunk/extensions/Validator/includes/ParameterInput.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | |
105 | 105 | if ( count( $valueList ) > 0 ) { |
106 | 106 | $valueList = count( $valueList ) > 1 ? call_user_func_array( 'array_intersect', $valueList ) : $valueList[0]; |
107 | | - $html = $this->param->isList() ? $this->getChckboxListInput( $valueList ) : $this->getSelectInput( $valueList ); |
| 107 | + $html = $this->param->isList() ? $this->getCheckboxListInput( $valueList ) : $this->getSelectInput( $valueList ); |
108 | 108 | } |
109 | 109 | else { |
110 | 110 | switch ( $this->param->getType() ) { |
— | — | @@ -199,7 +199,7 @@ |
200 | 200 | $options = array(); |
201 | 201 | $options[] = '<option value=""></option>'; |
202 | 202 | |
203 | | - $currentValues = $this->getValueToUse(); |
| 203 | + $currentValues = (array)$this->getValueToUse(); |
204 | 204 | if ( is_null( $currentValues ) ) $currentValues = array(); |
205 | 205 | |
206 | 206 | foreach ( $valueList as $value ) { |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | protected function getCheckboxListInput( array $valueList ) { |
232 | 232 | $boxes = array(); |
233 | 233 | |
234 | | - $currentValues = $this->getValueToUse(); |
| 234 | + $currentValues = (array)$this->getValueToUse(); |
235 | 235 | if ( is_null( $currentValues ) ) $currentValues = array(); |
236 | 236 | |
237 | 237 | foreach ( $valueList as $value ) { |
— | — | @@ -243,7 +243,7 @@ |
244 | 244 | $this->inputName . '[' . htmlspecialchars( $value ). ']', |
245 | 245 | in_array( $value, $currentValues ) |
246 | 246 | ) . |
247 | | - Html::element( 'tt', $value ) |
| 247 | + Html::element( 'tt', array(), $value ) |
248 | 248 | ); |
249 | 249 | } |
250 | 250 | |