Skip to content

Commit 4371634

Browse files
authored
Merge pull request #48023 from nextcloud/backport/48014/stable28
2 parents 124b565 + 9b0c27c commit 4371634

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
@@ -272,8 +272,7 @@ public function getIdsForTag($tag) {
272272
* @param string $user The user whose tags are to be checked.
273273
*/
274274
public function userHasTag(string $name, string $user): bool {
275-
$key = $this->array_searchi($name, $this->getTagsForUser($user));
276-
return ($key !== false) ? $this->tags[$key]->getId() : false;
275+
return $this->array_searchi($name, $this->getTagsForUser($user)) !== false;
277276
}
278277

279278
/**

0 commit comments

Comments
 (0)