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 adcc061 + ece4131 commit bf61067Copy full SHA for bf61067
1 file changed
lib/private/Tags.php
@@ -624,6 +624,10 @@ public function purgeObjects(array $ids) {
624
* @return array|false An array of object ids.
625
*/
626
public function getFavorites() {
627
+ if(!$this->userHasTag(self::TAG_FAVORITE, $this->user)) {
628
+ return [];
629
+ }
630
+
631
try {
632
return $this->getIdsForTag(self::TAG_FAVORITE);
633
} catch(\Exception $e) {
0 commit comments