Use public_contact() instead of wrong query in Profile::getEventsReminderHTML
This commit is contained in:
parent
e0b33b36a2
commit
82ed6fff9f
|
@ -643,8 +643,6 @@ class Profile
|
||||||
$bd_format = L10n::t('g A l F d'); // 8 AM Friday January 18
|
$bd_format = L10n::t('g A l F d'); // 8 AM Friday January 18
|
||||||
$classtoday = '';
|
$classtoday = '';
|
||||||
|
|
||||||
$self = dba::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
|
|
||||||
|
|
||||||
$s = dba::p(
|
$s = dba::p(
|
||||||
"SELECT `event`.*
|
"SELECT `event`.*
|
||||||
FROM `event`
|
FROM `event`
|
||||||
|
@ -663,7 +661,7 @@ class Profile
|
||||||
local_user(),
|
local_user(),
|
||||||
DateTimeFormat::utc('now + 7 days'),
|
DateTimeFormat::utc('now + 7 days'),
|
||||||
DateTimeFormat::utc('now - 1 days'),
|
DateTimeFormat::utc('now - 1 days'),
|
||||||
$self['id'],
|
public_contact(),
|
||||||
ACTIVITY_ATTEND,
|
ACTIVITY_ATTEND,
|
||||||
ACTIVITY_ATTENDMAYBE
|
ACTIVITY_ATTENDMAYBE
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue