summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-25 22:06:51 -0700
committerAndrew Dolgov <[email protected]>2013-03-25 22:06:51 -0700
commit5894fa4131043e8fccaecf87f29280afcad24574 (patch)
tree0b247478a9b42c8885a6a3226bf03646970f1e14
parent1bd7413f6aeec49a4d248541ba5a52015d1bd524 (diff)
parent30123fe630da0c9882056de91460b2dd5912ad47 (diff)
Merge pull request #86 from saperduper/master
handle future pubDate
-rw-r--r--include/rssfuncs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 11aa0e4ba..130f9142c 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -435,7 +435,7 @@
$entry_timestamp = strtotime($item->get_date());
- if ($entry_timestamp == -1 || !$entry_timestamp) {
+ if ($entry_timestamp == -1 || !$entry_timestamp || $entry_timestamp > time()) {
$entry_timestamp = time();
$no_orig_date = 'true';
} else {