diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-15 15:27:37 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-15 15:51:07 +0000 |
commit | f4d453ed8e3ea1a788c383528ab109d61828c836 (patch) | |
tree | d7c42e747b07bf877dccbda9e53286c16a7f6ba8 /lib | |
parent | 9b4637b09a004a78b4c9d8df707a8fb197c77162 (diff) | |
download | nextcloud-server-f4d453ed8e3ea1a788c383528ab109d61828c836.tar.gz nextcloud-server-f4d453ed8e3ea1a788c383528ab109d61828c836.zip |
fix(Tags): Return boolean for userHasTags()backport/48014/stable29
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib')
-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 5f84b692def..dbb8314b366 100644 --- a/lib/private/Tags.php +++ b/lib/private/Tags.php @@ -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; } /** |