fix(Tags): Return boolean for userHasTags()

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2024-09-15 15:27:37 +02:00 committed by backportbot[bot]
parent f2deb7710a
commit dd7fb60991

View file

@ -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;
}
/**