Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(Tags): Return boolean for userHasTags()
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Sep 15, 2024
commit dd7fb609918862ccef6fc9201f871523cf0b0cbd
3 changes: 1 addition & 2 deletions lib/private/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ public function getIdsForTag($tag) {
* @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;
}

/**
Expand Down