From 560caf837768a39d7e13f067f9221347ad348774 Mon Sep 17 00:00:00 2001 From: jmechnich Date: Sat, 1 Oct 2022 11:05:12 +0200 Subject: Fix PHP8 strtime warning if argument is null (addendum) --- classes/digest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/digest.php') diff --git a/classes/digest.php b/classes/digest.php index 3e943e6dd..a5dbc0945 100644 --- a/classes/digest.php +++ b/classes/digest.php @@ -22,7 +22,7 @@ class Digest while ($line = $res->fetch()) { if (get_pref(Prefs::DIGEST_ENABLE, $line['id'])) { - $preferred_ts = strtotime(get_pref(Prefs::DIGEST_PREFERRED_TIME, $line['id'])); + $preferred_ts = strtotime(get_pref(Prefs::DIGEST_PREFERRED_TIME, $line['id']) ?? ''); // try to send digests within 2 hours of preferred time if ($preferred_ts && time() >= $preferred_ts && -- cgit v1.2.3