Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -914,6 +914,10 @@ |
915 | 915 | $cur_input_ids[] = $enum_input_ids[$option]; |
916 | 916 | } |
917 | 917 | } |
| 918 | + // If there were no matches to existing radiobutton options, escape |
| 919 | + if ( count( $cur_input_ids ) == 0 ) { |
| 920 | + continue; |
| 921 | + } |
918 | 922 | $options_str = "['" . implode( "', '", $cur_input_ids ) . "']"; |
919 | 923 | $cur_js_text = "showIfChecked($options_str, '$div_id'); "; |
920 | 924 | $return_js_text .= $cur_js_text . "\n"; |