Skip to content

Commit 42a2df4

Browse files
author
Daniele Scasciafratte
committed
working on #13
1 parent e418136 commit 42a2df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/class-woocommerce-taxonomy-report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Woocommerce_Taxonomy_Report {
5353
*/
5454
private function __construct() {
5555
$taxonomies = get_option( 'woocommerce_taxonomy-report_settings', null );
56-
if ( isset( $taxonomies [ 'chosen' ] ) ) {
56+
if ( isset( $taxonomies [ 'chosen' ] ) && is_array($taxonomies [ 'chosen' ]) ) {
5757
$taxonomies = $taxonomies [ 'chosen' ];
5858
foreach ( $taxonomies as $taxonomy ) {
5959
register_via_taxonomy_core(

0 commit comments

Comments
 (0)