mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 08:58:20 +01:00
Conpherence - fix a bug where users have no events
Summary: Fixes T8518. Defaulting $events to null creates carnage further down the stack. Instead, default it to array() so foreach, array_select_keys, etc. don't barf. Test Plan: logic and will ask the reporting user to verify since they can repro 100% Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8518 Differential Revision: https://secure.phabricator.com/D13314
This commit is contained in:
parent
a3010148e2
commit
281082f4d7
1 changed files with 1 additions and 2 deletions
|
@ -355,6 +355,7 @@ final class ConpherenceThreadQuery
|
|||
$start_epoch = $epochs['start_epoch'];
|
||||
$end_epoch = $epochs['end_epoch'];
|
||||
|
||||
$events = array();
|
||||
if ($participant_phids) {
|
||||
$events = id(new PhabricatorCalendarEventQuery())
|
||||
->setViewer($this->getViewer())
|
||||
|
@ -363,8 +364,6 @@ final class ConpherenceThreadQuery
|
|||
->withDateRange($start_epoch, $end_epoch)
|
||||
->execute();
|
||||
$events = mpull($events, null, 'getPHID');
|
||||
} else {
|
||||
$events = null;
|
||||
}
|
||||
|
||||
$invitees = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue