We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a643cb2 + 9b82bfd commit 77de180Copy full SHA for 77de180
1 file changed
lib/private/Tags.php
@@ -248,8 +248,7 @@ public function getIdsForTag($tag) {
248
* @param string $user The user whose tags are to be checked.
249
*/
250
public function userHasTag(string $name, string $user): bool {
251
- $key = $this->array_searchi($name, $this->getTagsForUser($user));
252
- return ($key !== false) ? $this->tags[$key]->getId() : false;
+ return $this->array_searchi($name, $this->getTagsForUser($user)) !== false;
253
}
254
255
/**
0 commit comments