From 5c70d26b7ea8c2ac8d65e1c96e8805f73f433652 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jul 2022 07:08:31 +0300 Subject: some very minor php8.1 warnings fixed --- classes/rssutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/rssutils.php') diff --git a/classes/rssutils.php b/classes/rssutils.php index 1d87e73d6..384830556 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -447,7 +447,7 @@ class RSSUtils { Debug::log("not using CURL due to open_basedir restrictions", Debug::LOG_VERBOSE); } - if (time() - strtotime($feed_obj->last_unconditional) > Config::get(Config::MAX_CONDITIONAL_INTERVAL)) { + if (time() - strtotime($feed_obj->last_unconditional ?? "") > Config::get(Config::MAX_CONDITIONAL_INTERVAL)) { Debug::log("maximum allowed interval for conditional requests exceeded, forcing refetch", Debug::LOG_VERBOSE); $force_refetch = true; -- cgit v1.2.3-54-g00ecf