There could be unresolvable FeedSub entries

This commit is contained in:
Mikael Nordfeldth 2014-06-01 16:07:08 +02:00
parent 2f97d5d206
commit 3ef8322b03
1 changed files with 5 additions and 1 deletions

View File

@ -238,7 +238,11 @@ class Ostatus_profile extends Managed_DataObject
public function garbageCollect() public function garbageCollect()
{ {
$feedsub = FeedSub::getKV('uri', $this->feeduri); $feedsub = FeedSub::getKV('uri', $this->feeduri);
return $feedsub->garbageCollect(); if ($feedsub instanceof FeedSub) {
return $feedsub->garbageCollect();
}
// Since there's no FeedSub we can assume it's already garbage collected
return true;
} }
/** /**