Avoid a fatal error if select has no options

This commit is contained in:
Tamara Zuk 2015-02-11 11:30:52 -05:00
parent 2da86accc8
commit bd8a57eb32
1 changed files with 1 additions and 1 deletions

View File

@ -1781,7 +1781,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
break;
case 'select' :
$options = '';
$options = $field = '';
if ( ! empty( $args['options'] ) ) {
foreach ( $args['options'] as $option_key => $option_text )