diff options
author | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2019-03-21 05:16:35 +0100 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2019-03-21 05:16:35 +0100 |
commit | c69bcb8e68cd57a7771d03cd0e43c52cf1a26220 (patch) | |
tree | 3a94daadb7c8be26bd01ef6dbc92f1c2fee597b0 /lib | |
parent | be226777fe5afff2218d47c6c459dfdaa225a8b3 (diff) |
Allow empty-ish lastmodified and clean up FeedFetcher Test (#458)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Fetcher/FeedFetcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php index fe6910e5b..bcf6081e3 100755 --- a/lib/Fetcher/FeedFetcher.php +++ b/lib/Fetcher/FeedFetcher.php @@ -73,7 +73,7 @@ class FeedFetcher implements IFeedFetcher } $url = $url2->getNormalizedURL(); $this->reader->resetFilters(); - if (is_null($lastModified) || !is_string($lastModified)) { + if (empty($lastModified) || !is_string($lastModified)) { $resource = $this->reader->read($url); } else { $resource = $this->reader->readSince($url, new DateTime($lastModified)); |