Bug 179697 - OR terms need extra level of bracketing

r=myk, a=justdave
parent 8cd838d6
...@@ -883,6 +883,7 @@ sub init { ...@@ -883,6 +883,7 @@ sub init {
} }
} }
if (@orlist) { if (@orlist) {
@orlist = map("($_)", @orlist) if (scalar(@orlist) > 1);
push(@andlist, "(" . join(" OR ", @orlist) . ")"); push(@andlist, "(" . join(" OR ", @orlist) . ")");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment