diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-09-15 19:00:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 19:00:24 +0200 |
commit | 80f8b7c65012570158edadae05955e50ec039b13 (patch) | |
tree | 9a0ecd20901a49a5f07abefb750667e6d95ddf14 /lib/private | |
parent | a91374e1a67f127fd526d6637ba0bbdfeb78d0ed (diff) | |
parent | dd7fb609918862ccef6fc9201f871523cf0b0cbd (diff) | |
download | nextcloud-server-80f8b7c65012570158edadae05955e50ec039b13.tar.gz nextcloud-server-80f8b7c65012570158edadae05955e50ec039b13.zip |
Merge pull request #48027 from nextcloud/backport/48014/stable30
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Tags.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Tags.php b/lib/private/Tags.php index 420cabc36b9..d12a0f04b8c 100644 --- a/lib/private/Tags.php +++ b/lib/private/Tags.php @@ -248,8 +248,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; } /** |