Skip to content

Commit

Permalink
isset preference
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Sep 26, 2024
1 parent 0e8c32e commit db0b3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimplePie.php
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ protected function fetch_data(&$cache)
$this->data = [];
}
// Check if the cache has been updated
elseif (empty($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) {
elseif (!isset($this->data['cache_expiration_time']) || $this->data['cache_expiration_time'] < time()) {
// Want to know if we tried to send last-modified and/or etag headers
// when requesting this file. (Note that it's up to the file to
// support this, but we don't always send the headers either.)
Expand Down

0 comments on commit db0b3ca

Please sign in to comment.