@@ -68,8 +68,9 @@ |
||
68 | 68 | public function getSearchTerm() : string |
69 | 69 | { |
70 | 70 | $term = $this->request->getQueryParamRaw('q') !== null ? $this->request->getQueryParamRaw('q') : $this->request->getQueryParamRaw('query'); |
71 | - if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) |
|
72 | - $term = $this->request->getQueryParamRaw('label'); |
|
71 | + if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) { |
|
72 | + $term = $this->request->getQueryParamRaw('label'); |
|
73 | + } |
|
73 | 74 | $term = trim($term); // surrounding whitespace is not considered significant |
74 | 75 | $term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184 |
75 | 76 | if ($this->rest) { |