mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
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)
This commit is contained in:
1 parent
d42b4c299c
commit
23c43b1fbf
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user