Fix grouped add to cart notice

Closes #10974
This commit is contained in:
Mike Jolley 2016-05-23 13:39:23 +01:00
parent 7b89cbafdf
commit 980a726984
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function wc_add_to_cart_message( $products, $show_qty = false ) {
$show_qty = false;
}
if ( ! $show_qty ) {
if ( ! $show_qty && ! is_array( $products ) ) {
$products = array_fill_keys( array_values( $products ), 1 );
}