From bd2314170dc183c154c2af05686ddb0224b5d133 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Feb 2021 12:46:13 +0300 Subject: implement prefs UI based on new prefs class and a few more things --- classes/digest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'classes/digest.php') 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; -- cgit v1.2.3-54-g00ecf