diff options
author | fox <[email protected]> | 2022-10-01 12:28:15 +0300 |
---|---|---|
committer | fox <[email protected]> | 2022-10-01 12:28:15 +0300 |
commit | 0ac143a29b45e35faf7b636e26d4aa854d95602a (patch) | |
tree | 8b28a34faaac9fd848dad7503db8d6c191f894f6 /classes/digest.php | |
parent | 42bc1620b8deda73b96b2e0029c6de79daa5ccca (diff) | |
parent | 560caf837768a39d7e13f067f9221347ad348774 (diff) |
Merge pull request 'Fix PHP8 strtime warning if argument is null (addendum)' (#86) from mechnich/tt-rss:more-strtotime-fixes into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/86
Diffstat (limited to 'classes/digest.php')
-rw-r--r-- | classes/digest.php | 2 |
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 && |