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

Fix list function evaluation syntax errors

parent 60d450f9
No related branches found
No related tags found
No related merge requests found
...@@ -855,7 +855,7 @@ class ShippingRule { ...@@ -855,7 +855,7 @@ class ShippingRule {
return false; return false;
} }
switch ($func) { switch ($function) {
case "length": return count($args[0]); break; case "length": return count($args[0]); break;
case "union": case "union":
case "join": return call_user_func_array( "array_merge" , $args); break; case "join": return call_user_func_array( "array_merge" , $args); break;
...@@ -915,7 +915,7 @@ class ShippingRule { ...@@ -915,7 +915,7 @@ class ShippingRule {
} }
// List functions // List functions
if (in_array($func, array("length", "complement", "issubset", "contains", "union", "join", "intersection", "list_equal"))) { if (in_array($func, array("length", "complement", "issubset", "contains", "union", "join", "intersection", "list_equal"))) {
return evaluateListFunction ($func, args); return $this->evaluateListFunction ($func, $args);
} }
// Functions with variable number of args // Functions with variable number of args
switch ($func) { switch ($func) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment