prevent notices

This commit is contained in:
Mike Jolley 2012-11-30 15:12:11 +00:00
parent 3f0a698940
commit 73384910f2
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ class WC_Customer {
$_product = get_product( $result->product_id );
endif;
if ( ! $_product->exists() ) continue;
if ( ! $_product || ! $_product->exists() ) continue;
if ( ! $_product->has_file( $result->download_id ) ) continue;