Page MenuHomePhabricator

D15207.id36711.diff
No OneTemporary

D15207.id36711.diff

diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
@@ -266,6 +266,7 @@
$list = new PHUIObjectItemListView();
foreach ($events as $event) {
+ $attending = '';
$duration = '';
$event_date_info = $this->getEventDateLabel($event);
$creator_handle = $handles[$event->getUserPHID()];
@@ -275,11 +276,13 @@
$attendees[] = $invitee->getInviteePHID();
}
- $attendees = pht(
- 'Attending: %s',
- $viewer->renderHandleList($attendees)
- ->setAsInline(1)
- ->render());
+ if (count($attendees) > 0) {
+ $attendees = pht(
+ 'Attending: %s',
+ $viewer->renderHandleList($attendees)
+ ->setAsInline(1)
+ ->render());
+ }
if (strlen($event->getDuration()) > 0) {
$duration = pht(

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 7:22 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7702211
Default Alt Text
D15207.id36711.diff (1 KB)

Event Timeline