| @@ -298,7 +298,8 @@ discard block | ||
| 298 | 298 | ]; | 
| 299 | 299 | } | 
| 300 | 300 | } | 
| 301 | -				} else { | |
| 301 | + } | |
| 302 | +				else { | |
| 302 | 303 | $terms[] = [ | 
| 303 | 304 | 'type' => 'term', | 
| 304 | 305 | 'fields' => $fields, | 
| @@ -329,7 +330,8 @@ discard block | ||
| 329 | 330 |  					if ($value !== null) { | 
| 330 | 331 |  						if ($subres[RELOP] == RELOP_LT || $subres[RELOP] == RELOP_LE) { | 
| 331 | 332 | $filters['date_end'] = $value; | 
| 332 | -						} elseif ($subres[RELOP] == RELOP_GT || $subres[RELOP] == RELOP_GE) { | |
| 333 | + } | |
| 334 | +						elseif ($subres[RELOP] == RELOP_GT || $subres[RELOP] == RELOP_GE) { | |
| 333 | 335 | $filters['date_start'] = $value; | 
| 334 | 336 | } | 
| 335 | 337 | } | 
| @@ -358,7 +358,7 @@ | ||
| 358 | 358 |  			if (count($parts) === 1) { | 
| 359 | 359 | return $parts[0]; | 
| 360 | 360 | } | 
| 361 | -			$wrapped = array_map(function ($segment) { | |
| 361 | +			$wrapped = array_map(function($segment) { | |
| 362 | 362 |  				return '(' . $segment . ')'; | 
| 363 | 363 | }, $parts); | 
| 364 | 364 |  			return implode(' ' . $operator . ' ', $wrapped); |