From 0aba73fd37f0978933397fe96cb44dbdede3cda0 Mon Sep 17 00:00:00 2001 From: Geert De Deckere Date: Sat, 5 May 2012 14:20:01 +0200 Subject: [PATCH] Fixed notice "undefined index: id" in woocommerce-admin-settings-forms.php:729 --- admin/woocommerce-admin-settings-forms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/woocommerce-admin-settings-forms.php b/admin/woocommerce-admin-settings-forms.php index a025d676aeb..0d230542028 100644 --- a/admin/woocommerce-admin-settings-forms.php +++ b/admin/woocommerce-admin-settings-forms.php @@ -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'] = '';