diff --git a/library/rules_shipping_framework.php b/library/rules_shipping_framework.php index 5fc8fae91fa6872afd8fd2c0b2cab3788d29dc06..42ad51ce6a514019959460f968a3e32251c3d756 100644 --- a/library/rules_shipping_framework.php +++ b/library/rules_shipping_framework.php @@ -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!