Fix PHP8 strtime warning if argument is null (addendum)

This commit is contained in:
jmechnich
2022-10-01 11:05:12 +02:00
parent 42bc1620b8
commit 560caf8377
6 changed files with 11 additions and 11 deletions

View File

@@ -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 &&