[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Calendar: handle empty organizers in RSVP output
"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68df8c88a6c96_2cdf2a051216@gitlab-sidekiq-low-urgency-cpu-bound-v2-78f6c68b9-p8zvh.mail> |
Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
8b3a5682 by Steven Ngesera at 2025-10-03T08:34:45+00:00
[FIX] Calendar: handle empty organizers in RSVP output
- - - - -
1 changed file:
- lib/cypht/modules/tiki/calendar_modules.php
Changes:
=====================================
lib/cypht/modules/tiki/calendar_modules.php
=====================================
@@ -410,7 +410,7 @@ class Hm_Output_add_rsvp_actions extends Hm_Output_Module
$res = '';
$res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex header_event_dtstart"><div class="col-md-2"><span class="text-muted">%s</span></div><div class="col-md-10 col-12">%s</div></div>', tr('Event start'), TikiLib::lib('tiki')->get_long_datetime($event['start']));
$res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex header_event_dtend"><div class="col-md-2"><span class="text-muted">%s</span></div><div class="col-md-10 col-12">%s</div></div>', tr('Event end'), TikiLib::lib('tiki')->get_long_datetime($event['end']));
- $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex header_event_organizer"><div class="col-md-2"><span class="text-muted">%s</span></div><div class="col-md-10 col-12">%s</div></div>', tr('Organizer'), implode(", ", $event['real_organizers']));
+ $res .= sprintf('<div class="row g-0 py-0 py-sm-1 small_header d-flex header_event_organizer"><div class="col-md-2"><span class="text-muted">%s</span></div><div class="col-md-10 col-12">%s</div></div>', tr('Organizer'), ! empty($event['real_organizers']) ? implode(", ", $event['real_organizers']) : "-");
if ($prefs['feature_calendar'] == 'y' && $method != 'CANCEL') {
$existing = TikiLib::lib('calendar')->find_by_uid(null, $event['uid']);
if (! $existing) {
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8b3a56824edb88d9ed597a123e5f14026e49f5f4
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8b3a56824edb88d9ed597a123e5f14026e49f5f4
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs