diff options
-rw-r--r-- | lib/private/Tags.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Tags.php b/lib/private/Tags.php index 10c9affa277..c5c0761971b 100644 --- a/lib/private/Tags.php +++ b/lib/private/Tags.php @@ -624,6 +624,10 @@ class Tags implements \OCP\ITags { * @return array|false An array of object ids. */ public function getFavorites() { + if(!$this->userHasTag(self::TAG_FAVORITE, $this->user)) { + return []; + } + try { return $this->getIdsForTag(self::TAG_FAVORITE); } catch(\Exception $e) { |