woothemes/woocommerce — pull request #3024 by ssmathias (2013-04-24 18:30:18+00:00)
Title: Patched the "woocommerce_downloadable_product_permissions"

We were running batch saves of all products and orders to migrate our custom downloads code (adding multiple file support before it was introduced in the plugin) and ran into issues where a fatal error would occur generating the file permissions on orders where a product had been deleted.

This patch updates the woocommerce_downloadable_product_permissions function to recognize "false" as a potential value returned from "get_product_from_item", and not to assume that the value returned is an object with the "exists" and "is_downloadable" attributes.