diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 12:46:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 12:46:13 +0300 |
commit | bd2314170dc183c154c2af05686ddb0224b5d133 (patch) | |
tree | 762e6563377f4baeadd7a4f995cec57dbeacac90 /classes/digest.php | |
parent | e858e979e9e6daf1888b007d509cc4afe5443811 (diff) |
implement prefs UI based on new prefs class and a few more things
Diffstat (limited to 'classes/digest.php')
-rw-r--r-- | classes/digest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/digest.php b/classes/digest.php index a6a0c47de..e158af85d 100644 --- a/classes/digest.php +++ b/classes/digest.php @@ -21,8 +21,8 @@ class Digest while ($line = $res->fetch()) { - if (@get_pref('DIGEST_ENABLE', $line['id'], false)) { - $preferred_ts = strtotime(get_pref('DIGEST_PREFERRED_TIME', $line['id'], '00:00')); + if (get_pref('DIGEST_ENABLE', $line['id'])) { + $preferred_ts = strtotime(get_pref('DIGEST_PREFERRED_TIME', $line['id'])); // try to send digests within 2 hours of preferred time if ($preferred_ts && time() >= $preferred_ts && @@ -31,7 +31,7 @@ class Digest Debug::log("Sending digest for UID:" . $line['id'] . " - " . $line["email"]); - $do_catchup = get_pref('DIGEST_CATCHUP', $line['id'], false); + $do_catchup = get_pref('DIGEST_CATCHUP', $line['id']); global $tz_offset; |