summaryrefslogtreecommitdiff
path: root/classes/digest.php
diff options
context:
space:
mode:
authorjmechnich <[email protected]>2022-10-01 11:05:12 +0200
committerjmechnich <[email protected]>2022-10-01 11:05:12 +0200
commit560caf837768a39d7e13f067f9221347ad348774 (patch)
tree8b28a34faaac9fd848dad7503db8d6c191f894f6 /classes/digest.php
parent42bc1620b8deda73b96b2e0029c6de79daa5ccca (diff)
Fix PHP8 strtime warning if argument is null (addendum)
Diffstat (limited to 'classes/digest.php')
-rw-r--r--classes/digest.php2
1 files changed, 1 insertions, 1 deletions
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 &&