From 4d17fb36d1e3a32c4cac3ea78175063c222fc10c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 1 Aug 2018 09:27:13 +0200 Subject: [PATCH] Fix missing fields in event reminder (#5540) --- src/Model/Profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 3ac147396d..8d859b7905 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -666,11 +666,11 @@ class Profile $istoday = false; while ($rr = DBA::fetch($s)) { - if (strlen($rr['name'])) { + if (strlen($rr['summary'])) { $total ++; } - $strt = DateTimeFormat::convert($rr['start'], $rr['convert'] ? $a->timezone : 'UTC', 'UTC', 'Y-m-d'); + $strt = DateTimeFormat::convert($rr['start'], $rr['adjust'] ? $a->timezone : 'UTC', 'UTC', 'Y-m-d'); if ($strt === DateTimeFormat::timezoneNow($a->timezone, 'Y-m-d')) { $istoday = true; } @@ -686,7 +686,7 @@ class Profile $description = L10n::t('[No description]'); } - $strt = DateTimeFormat::convert($rr['start'], $rr['convert'] ? $a->timezone : 'UTC'); + $strt = DateTimeFormat::convert($rr['start'], $rr['adjust'] ? $a->timezone : 'UTC'); if (substr($strt, 0, 10) < DateTimeFormat::timezoneNow($a->timezone, 'Y-m-d')) { continue;