Commit eb63a4c4 authored by Varun Sridharan's avatar Varun Sridharan

Fixes #33

parent 205a3bbe
...@@ -120,7 +120,8 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation { ...@@ -120,7 +120,8 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
public function added_with_other_products(){ public function added_with_other_products(){
global $woocommerce; global $woocommerce;
if(!empty($woocommerce->cart->get_cart())){ return true; } $cart = $woocommerce->cart->get_cart();
if(!empty($cart)){ return true; }
return false; return false;
} }
...@@ -243,4 +244,4 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation { ...@@ -243,4 +244,4 @@ class WooCommerce_Quick_Donation_Process extends WooCommerce_Quick_Donation {
} }
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment