Fix missing fields in event reminder (#5540)
This commit is contained in:
parent
1afc0ab028
commit
4d17fb36d1
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue