Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -573,6 +573,8 @@ |
574 | 574 | // html_entity_decode() is needed to turn '>' to '>' |
575 | 575 | $vals = explode( ';', html_entity_decode( $sub_components[1] ) ); |
576 | 576 | foreach ( $vals as $val ) { |
| 577 | + $val = trim( $val ); |
| 578 | + if ( empty( $val ) ) continue; |
577 | 579 | $option_div_pair = explode( '=>', $val, 2 ); |
578 | 580 | if ( count( $option_div_pair ) > 1 ) { |
579 | 581 | $option = $option_div_pair[0]; |