Fixed notice "undefined index: id" in woocommerce-admin-settings-forms.php:729

This commit is contained in:
Geert De Deckere 2012-05-05 14:20:01 +02:00
parent cee85cb443
commit 0aba73fd37
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ function woocommerce_admin_fields($options) {
foreach ( $options as $value ) {
if ( ! isset( $value['type'] ) ) continue;
if ( ! isset( $value['id'] ) ) $value['id'] = '';
if ( ! isset( $value['name'] ) ) $value['name'] = '';
if ( ! isset( $value['class'] ) ) $value['class'] = '';
if ( ! isset( $value['css'] ) ) $value['css'] = '';