summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Collaboration/Collaborators/SearchResult.php2
-rw-r--r--lib/public/Collaboration/Collaborators/SearchResultType.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/SearchResult.php b/lib/private/Collaboration/Collaborators/SearchResult.php
index 9c9503ea945..7b32b388203 100644
--- a/lib/private/Collaboration/Collaborators/SearchResult.php
+++ b/lib/private/Collaboration/Collaborators/SearchResult.php
@@ -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] = [];
}
}
diff --git a/lib/public/Collaboration/Collaborators/SearchResultType.php b/lib/public/Collaboration/Collaborators/SearchResultType.php
index 65d20cd67f4..e4ad888d6e4 100644
--- a/lib/public/Collaboration/Collaborators/SearchResultType.php
+++ b/lib/public/Collaboration/Collaborators/SearchResultType.php
@@ -55,6 +55,7 @@ class SearchResultType {
* @param $type
* @return string
* @throws \InvalidArgumentException
+ * @since 13.0.0
*/
protected function getValidatedType($type) {
$type = trim(strval($type));