Ensure product exists on downloads information.

This commit is contained in:
Warren Holmes 2013-04-29 21:39:19 +02:00
parent e81882e475
commit 056473d681
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ function woocommerce_order_downloads_meta_box() {
}
// don't show permissions to files that have since been removed
if ( ! $product->exists() || ! $product->has_file( $download->download_id ) )
if ( ! $product || ! $product->exists() || ! $product->has_file( $download->download_id ) )
continue;
include( 'order-download-permission-html.php' );