Merge pull request #48026 from nextcloud/backport/48014/stable29

pull/47991/head
Kate 2024-09-15 19:42:30 +07:00 committed by GitHub
commit c26bdfa67a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

@ -271,8 +271,7 @@ class Tags implements ITags {
* @param string $user The user whose tags are to be checked.
*/
public function userHasTag(string $name, string $user): bool {
$key = $this->array_searchi($name, $this->getTagsForUser($user));
return ($key !== false) ? $this->tags[$key]->getId() : false;
return $this->array_searchi($name, $this->getTagsForUser($user)) !== false;
}
/**