use empty to check to see if attributes for variations exist

Closes #8959
This commit is contained in:
Mike Jolley 2015-08-26 12:56:44 +01:00
parent fa9c5480a9
commit 1f3e8b984e
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ class WC_Meta_Box_Product_Data {
if ( $attributes ) {
foreach ( $attributes as $attribute ) {
if ( isset( $attribute['is_variation'] ) ) {
if ( ! empty( $attribute['is_variation'] ) ) {
$variation_attribute_found = true;
break;
}