minor fixes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
2eff174deb
commit
f446ec83dd
|
@ -79,7 +79,7 @@ class SearchResult implements ISearchResult {
|
|||
public function unsetResult(SearchResultType $type) {
|
||||
$type = $type->getLabel();
|
||||
$this->result[$type] = [];
|
||||
if(isset($this->$result['exact'][$type])) {
|
||||
if(isset($this->result['exact'][$type])) {
|
||||
$this->result['exact'][$type] = [];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ class SearchResultType {
|
|||
* @param $type
|
||||
* @return string
|
||||
* @throws \InvalidArgumentException
|
||||
* @since 13.0.0
|
||||
*/
|
||||
protected function getValidatedType($type) {
|
||||
$type = trim(strval($type));
|
||||
|
|
Loading…
Reference in New Issue