Skip to content

Commit

Permalink
fix(Tags): Return boolean for userHasTags()
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Sep 15, 2024
1 parent 9b4637b commit f4d453e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/private/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,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

0 comments on commit f4d453e

Please sign in to comment.