]> git.mxchange.org Git - friendica.git/commitdiff
Fix missing fields in event reminder (#5540)
authorHypolite Petovan <mrpetovan@eml.cc>
Wed, 1 Aug 2018 07:27:13 +0000 (09:27 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 1 Aug 2018 07:27:13 +0000 (09:27 +0200)
src/Model/Profile.php

index 3ac147396dd94f20d3caf5e0b9ff3db33d1548d0..8d859b7905bfc1733d74a07b354242b603b96613 100644 (file)
@@ -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;