From 41fd5a2ee7174564169af521635f9446980d2811 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Sun, 2 Aug 2015 20:26:31 +0200 Subject: [PATCH] Fix shipping rate 0 without shipping= --- library/rules_shipping_framework.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/rules_shipping_framework.php b/library/rules_shipping_framework.php index 5fc8fae..42ad51c 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! -- GitLab