There was an error while loading. Please reload this page.
2 parents 124b565 + 9b0c27c commit 4371634Copy full SHA for 4371634
1 file changed
lib/private/Tags.php
@@ -272,8 +272,7 @@ public function getIdsForTag($tag) {
272
* @param string $user The user whose tags are to be checked.
273
*/
274
public function userHasTag(string $name, string $user): bool {
275
- $key = $this->array_searchi($name, $this->getTagsForUser($user));
276
- return ($key !== false) ? $this->tags[$key]->getId() : false;
+ return $this->array_searchi($name, $this->getTagsForUser($user)) !== false;
277
}
278
279
/**
0 commit comments