A free, self-hostable news aggregator…
Fix return type for broken feeds (#3423)
Alexandre Alapetite23c43b1fbf74
diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.phpindex 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_dataif (($fetched = $this->fetch_data($cache)) === true){- return $this->data['mtime'];+ return empty($this->data['mtime']) ? false : $this->data['mtime'];}elseif ($fetched === false) {return false;