mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 17:48:40 -04:00
fix(Tags): Return boolean for userHasTags()
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
f2deb7710a
commit
dd7fb60991
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue