fix for query

This commit is contained in:
Mike Jolley 2012-02-28 13:58:53 +00:00
parent 87cbcfbe42
commit 01187b0d3d
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ function woocommerce_download_product() {
endif;
$download_result = $wpdb->get_row( $wpdb->prepare("
SELECT order_id, downloads_remaining,user_id
SELECT order_id, downloads_remaining,user_id,download_count,access_expires
FROM ".$wpdb->prefix."woocommerce_downloadable_product_permissions
WHERE user_email = %s
AND order_key = %s