Check function returns a product. #3526

This commit is contained in:
Mike Jolley 2013-07-24 21:24:53 +01:00
parent 41c27b19ad
commit ff0fc4fa31
1 changed files with 1 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ class WC_Order {
$_product = $this->get_product_from_item( $item );
if ($_product->exists() && $_product->is_downloadable()) :
if ( $_product && $_product->exists() && $_product->is_downloadable() ) :
$has_downloadable_item = true;
endif;