Skip to content

Commit 77de180

Browse files
Merge pull request #48014 from nextcloud/fix/tags/boolean-user-has-tags
2 parents a643cb2 + 9b82bfd commit 77de180

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/private/Tags.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ public function getIdsForTag($tag) {
248248
* @param string $user The user whose tags are to be checked.
249249
*/
250250
public function userHasTag(string $name, string $user): bool {
251-
$key = $this->array_searchi($name, $this->getTagsForUser($user));
252-
return ($key !== false) ? $this->tags[$key]->getId() : false;
251+
return $this->array_searchi($name, $this->getTagsForUser($user)) !== false;
253252
}
254253

255254
/**

0 commit comments

Comments
 (0)