Merge pull request #1002 from GeertDD/fix-notice

Fixed notice "undefined index: id" in woocommerce-admin-settings-forms.php:729
This commit is contained in:
Mike Jolley 2012-05-05 07:54:51 -07:00
commit 6a40ee9ef4
1 changed files with 1 additions and 0 deletions

View File

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