minor fixes

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-09-11 16:46:05 +02:00
parent 2eff174deb
commit f446ec83dd
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
2 changed files with 2 additions and 1 deletions

View File

@ -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] = [];
}
}

View File

@ -55,6 +55,7 @@ class SearchResultType {
* @param $type
* @return string
* @throws \InvalidArgumentException
* @since 13.0.0
*/
protected function getValidatedType($type) {
$type = trim(strval($type));