| @@ -367,9 +367,9 @@ | ||
| 367 | 367 | if($settings['source'] == 'edd' || $settings['source'] == 'edd_inline'){ |
| 368 | 368 | $term = 'download_category'; |
| 369 | 369 | } |
| 370 | 370 | $product_categories = get_the_terms( $product_id, $term ); |
| 371 | - if( ! is_wp_error( $product_categories ) ) { | |
| 371 | + if( is_array( $product_categories ) ) { | |
| 372 | 372 | foreach( $product_categories as $category ) { |
| 373 | 373 | $product_category_list[] = $category->slug; |
| 374 | 374 | } |
| 375 | 375 | } |