Skip to content

Commit 3d754f0

Browse files
author
Daniele Scasciafratte
committed
fix #13
1 parent 42a2df4 commit 3d754f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/includes/WC_Integration_TReport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function init_form_fields() {
3434
$product_tags[ $taxonomy->query_var ] = $taxonomy->label;
3535
}
3636
$taxonomies = get_option( 'woocommerce_taxonomy-report_settings', null );
37-
if ( isset( $taxonomies [ 'chosen' ] ) ) {
37+
if ( isset( $taxonomies [ 'chosen' ] ) && is_array($taxonomies [ 'chosen' ]) ) {
3838
$taxonomies = $taxonomies [ 'chosen' ];
3939
foreach ( $taxonomies as $taxonomy ) {
4040
$product_tags[ $taxonomy ] = ucfirst( $taxonomy );

0 commit comments

Comments
 (0)