Skip to content
Snippets Groups Projects
Commit 41fd5a2e authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix shipping rate 0 without shipping=

parent 48d90326
Branches
Tags
No related merge requests found
......@@ -515,7 +515,7 @@ class ShippingRule {
/* In the advanced version, all conditions and costs can be given as a full mathematical expression */
/* Both versions create an expression tree, which can be easily evaluated in evaluateTerm */
$rulepart = trim($rulepart);
if (empty($rulepart)) return;
if (!isset($rulepart) || $rulepart==='') return;
// Special-case the name assignment, where we don't want to interpret the value as an arithmetic expression!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment