diff --git a/controllers/front/GetFileController.php b/controllers/front/GetFileController.php index e8e1ba2cf..590aadc99 100644 --- a/controllers/front/GetFileController.php +++ b/controllers/front/GetFileController.php @@ -88,7 +88,7 @@ class GetFileControllerCore extends FrontController $this->displayCustomError('This file no longer exists.'); if (isset($info['product_quantity_refunded']) && isset($info['product_quantity_return']) && - ($info['product_quantity_refunded'] > 0 || $info['product_quantity_return'])) + ($info['product_quantity_refunded'] > 0 || $info['product_quantity_return'] > 0)) $this->displayCustomError('This product has been refunded.'); $now = time(); @@ -309,4 +309,4 @@ class GetFileControllerCore extends FrontController