Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #29 from bramley/patch-1
Browse files Browse the repository at this point in the history
Stop retrying when rss news feed does not respond
  • Loading branch information
michield committed Oct 29, 2016
2 parents a82bde2 + 01be374 commit 9521cdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rssfeed.php
Expand Up @@ -84,5 +84,8 @@ function buildNews($rss, $max)
if ($parseresult) {
$_SESSION['news']['short'] = buildNews($rss, 3);
$_SESSION['news']['long'] = buildNews($rss, 10);
echo $_SESSION['news'][$newsSize];
} else {
$_SESSION['news']['short'] = '';
$_SESSION['news']['long'] = '';
}
echo $_SESSION['news'][$newsSize];

0 comments on commit 9521cdb

Please sign in to comment.