Index: trunk/extensions/SemanticForms/includes/forminputs/SF_RadioButtonInput.php |
— | — | @@ -19,6 +19,9 @@ |
20 | 20 | public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
21 | 21 | global $sfgTabIndex, $sfgFieldNum, $sfgShowOnSelect; |
22 | 22 | |
| 23 | + // Standardize $cur_value |
| 24 | + if ( is_null( $cur_value ) ) { $cur_value = ''; } |
| 25 | + |
23 | 26 | if ( ( $possible_values = $other_args['possible_values'] ) == null ) { |
24 | 27 | // If it's a Boolean property, display 'Yes' and 'No' |
25 | 28 | // as the values. |
Index: trunk/extensions/SemanticForms/includes/forminputs/SF_DropdownInput.php |
— | — | @@ -29,6 +29,9 @@ |
30 | 30 | public static function getHTML( $cur_value, $input_name, $is_mandatory, $is_disabled, $other_args ) { |
31 | 31 | global $sfgTabIndex, $sfgFieldNum, $sfgShowOnSelect; |
32 | 32 | |
| 33 | + // Standardize $cur_value |
| 34 | + if ( is_null( $cur_value ) ) { $cur_value = ''; } |
| 35 | + |
33 | 36 | $className = ( $is_mandatory ) ? 'mandatoryField' : 'createboxInput'; |
34 | 37 | if ( array_key_exists( 'class', $other_args ) ) { |
35 | 38 | $className .= ' ' . $other_args['class']; |