summaryrefslogtreecommitdiffstats
path: root/bl
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-05 16:06:04 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-05 16:06:04 +0200
commitc6a279128ea6483fb06e052d4e85fba75e9e7fe1 (patch)
tree1700edcad069721f20b263d63d345b7c65b15b67 /bl
parent685ff350eb6c91fd8f48d31a4ba6a815d5f6e403 (diff)
fix #37 by fixing multiple, hard to track down typos
Diffstat (limited to 'bl')
-rw-r--r--bl/feedbl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/bl/feedbl.php b/bl/feedbl.php
index 53c430336..9dc8cd312 100644
--- a/bl/feedbl.php
+++ b/bl/feedbl.php
@@ -103,15 +103,15 @@ class FeedBl extends Bl {
public function update($feedId, $userId){
- $feed = $this->mapper->find($feedId, $userId);
+ $existingFeed = $this->mapper->find($feedId, $userId);
try {
- list($feed, $items) = $this->feedFetcher->fetch($feed->getUrl());
+ list($feed, $items) = $this->feedFetcher->fetch($existingFeed->getUrl());
// insert items in reverse order because the first one is usually the
// newest item
for($i=count($items)-1; $i>=0; $i--){
$item = $items[$i];
- $item->setFeedId($feed->getId());
+ $item->setFeedId($existingFeed->getId());
// if a doesnotexist exception is being thrown the entry does not
// exist and the item needs to be created, otherwise
@@ -142,7 +142,7 @@ class FeedBl extends Bl {
} catch(FetcherException $ex){
// failed updating is not really a problem, so only log it
- $this->api->log('Can not update feed with url' . $feed->getUrl() .
+ $this->api->log('Can not update feed with url' . $existingFeed->getUrl() .
': Not found or bad source');
}
}