Skip to content

Commit 5c70d26

Browse files
author
Andrew Dolgov
committed
some very minor php8.1 warnings fixed
1 parent 80d3db1 commit 5c70d26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/feeds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function _format_headlines_list($feed, string $method, string $view_mode
122122
$feed_title = $qfh_ret[1];
123123
$feed_site_url = $qfh_ret[2];
124124
$last_error = $qfh_ret[3];
125-
$last_updated = strpos($qfh_ret[4], '1970-') === false ?
125+
$last_updated = strpos($qfh_ret[4] ?? "", '1970-') === false ?
126126
TimeHelper::make_local_datetime($qfh_ret[4], false) : __("Never");
127127
$highlight_words = $qfh_ret[5];
128128
$reply['first_id'] = $qfh_ret[6];

classes/rssutils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ function ($result, $plugin) use (&$feed_data, $start_ts) {
447447
Debug::log("not using CURL due to open_basedir restrictions", Debug::LOG_VERBOSE);
448448
}
449449

450-
if (time() - strtotime($feed_obj->last_unconditional) > Config::get(Config::MAX_CONDITIONAL_INTERVAL)) {
450+
if (time() - strtotime($feed_obj->last_unconditional ?? "") > Config::get(Config::MAX_CONDITIONAL_INTERVAL)) {
451451
Debug::log("maximum allowed interval for conditional requests exceeded, forcing refetch", Debug::LOG_VERBOSE);
452452

453453
$force_refetch = true;

0 commit comments

Comments
 (0)