Fix missing fields in event reminder (#5540)

This commit is contained in:
Hypolite Petovan 2018-08-01 09:27:13 +02:00 committed by Tobias Diekershoff
parent 1afc0ab028
commit 4d17fb36d1

View file

@ -666,11 +666,11 @@ class Profile
$istoday = false; $istoday = false;
while ($rr = DBA::fetch($s)) { while ($rr = DBA::fetch($s)) {
if (strlen($rr['name'])) { if (strlen($rr['summary'])) {
$total ++; $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')) { if ($strt === DateTimeFormat::timezoneNow($a->timezone, 'Y-m-d')) {
$istoday = true; $istoday = true;
} }
@ -686,7 +686,7 @@ class Profile
$description = L10n::t('[No description]'); $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')) { if (substr($strt, 0, 10) < DateTimeFormat::timezoneNow($a->timezone, 'Y-m-d')) {
continue; continue;