aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-02-06 00:58:51 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-06 00:58:51 +0100
commit23c43b1fbf74288f0f630d77df27fd2c3bbc6cba (patch)
treee16bbf379b99456e0ffc551dc5698942f7f72d47 /lib
parentd42b4c299c7400d728a7a6eeeabe6f0f4ac3f169 (diff)
Fix return type for broken feeds (#3423)
Fix a rare error when an invalid feed is forced to be added again. FreshRSS code (not upstream)
Diffstat (limited to 'lib')
-rw-r--r--lib/SimplePie/SimplePie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.php
index bce6c56ac..bddf67645 100644
--- a/lib/SimplePie/SimplePie.php
+++ b/lib/SimplePie/SimplePie.php
@@ -1424,7 +1424,7 @@ class SimplePie
// Fetch the data via SimplePie_File into $this->raw_data
if (($fetched = $this->fetch_data($cache)) === true)
{
- return $this->data['mtime'];
+ return empty($this->data['mtime']) ? false : $this->data['mtime'];
}
elseif ($fetched === false) {
return false;