diff --git a/include/utils/InventoryUtils.php b/include/utils/InventoryUtils.php
index 284914d25db5b5ef01a95a77cf2466c73e5f932d..0329f8fcaab983b15121825e6f6d3cb5c1ac0ea5 100644
--- a/include/utils/InventoryUtils.php
+++ b/include/utils/InventoryUtils.php
@@ -1200,7 +1200,7 @@ function getBaseConversionRateForProduct($productid, $mode='edit', $module='Prod
 	$res = $adb->pquery($sql, $params);
 	$conv_rate = $adb->query_result($res, 0, 'conversion_rate');
 
-	return 1 / $conv_rate;
+	return $conv_rate ? (1 / $conv_rate) : 1;
 }
 
 /**	Function used to get the prices for the given list of products based in the specified currency