woothemes/woocommerce — pull request #2799 by maxrice (2013-03-23 18:39:18+00:00)
Title: Fix WC_Product::set_stock_status() to correctly set status

Currently any time `WC_Product::set_stock_status()` is called, the product will be changed to out of stock. This fixes the conditional that causes the bug.