summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--service/feedservice.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/service/feedservice.php b/service/feedservice.php
index 012534421..e0514b35f 100644
--- a/service/feedservice.php
+++ b/service/feedservice.php
@@ -192,9 +192,16 @@ class FeedService extends Service {
return $existingFeed;
}
+ // for backwards compability it can be that the location is not set
+ // yet, if so use the url
+ $location = $existingFeed->getLocation();
+ if (!$location) {
+ $location = $existingFeed->getUrl();
+ }
+
try {
list($fetchedFeed, $items) = $this->feedFetcher->fetch(
- $existingFeed->getUrl(),
+ $location,
false,
$existingFeed->getLastModified(),
$existingFeed->getEtag()