From: Hypolite Petovan Date: Wed, 1 Aug 2018 07:27:13 +0000 (+0200) Subject: Fix missing fields in event reminder (#5540) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d17fb36d1e3a32c4cac3ea78175063c222fc10c;p=friendica.git Fix missing fields in event reminder (#5540) --- 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;