From 82ed6fff9f72a01420428d2430b7db23f0c8dca8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 22 Apr 2018 11:29:55 -0400 Subject: [PATCH] Use public_contact() instead of wrong query in Profile::getEventsReminderHTML --- src/Model/Profile.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 1088ea600e..cd8fa29e13 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -643,8 +643,6 @@ class Profile $bd_format = L10n::t('g A l F d'); // 8 AM Friday January 18 $classtoday = ''; - $self = dba::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]); - $s = dba::p( "SELECT `event`.* FROM `event` @@ -663,7 +661,7 @@ class Profile local_user(), DateTimeFormat::utc('now + 7 days'), DateTimeFormat::utc('now - 1 days'), - $self['id'], + public_contact(), ACTIVITY_ATTEND, ACTIVITY_ATTENDMAYBE ); -- 2.39.5