Permalink
Browse files

Fixed a warning (undefined index) in plugin FeedTicker.

  • Loading branch information...
1 parent fc53643 commit 761049c87a1fee94a69db5aaa436c168203a0265 Marcel Glacki committed Apr 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Phergie/Plugin/FeedTicker.php
@@ -133,7 +133,7 @@ public function onLoad()
public function feedCheckingCallback()
{
$now = time();
- $idleTime = intval($this->getConfig('FeedTicker.idleTime', 60*60*2));
+ $idleTime = intval($this->getConfig('FeedTicker.idleTime', 7200)); //7200=60*60*2
$time = $now - $idleTime;
$feeds = $this->plugins->getPlugin('FeedManager')->getFeedsList();
$smartReader = (bool) $this->getConfig('FeedTicker.smartReader', false);
@@ -196,7 +196,7 @@ public function feedCheckingCallback()
}
// Check if is time to delivery items
- $showDelayTime = intval($this->getConfig('FeedTicker.showDelayTime', 60*3));
+ $showDelayTime = intval($this->getConfig('FeedTicker.showDelayTime', 180)); //180=60*3
if (($this->lastDeliveryTime + $showDelayTime) > time()) {
return;
}
@@ -240,7 +240,7 @@ public function getFeed($url, $updated=0, $etag='')
if ($lm < $updated) {
return false;
}
- } else if ($etag == $header['etag']) {
+ } else if ( isset($header['etag']) && $etag == $header['etag']) {
return false;
}
} else {

0 comments on commit 761049c

Please sign in to comment.