Skip to content

Commit bda2c57

Browse files
committed
Conpherence - fix no conpherences fatal
Summary: Fixes T3087. I guess I didn't load up the actual Conpherence UI last time I was in here with my 'noconpherences' user. :/ Test Plan: noconpherences user loaded /conpherence/ with no error Reviewers: epriestley, chad Reviewed By: chad CC: aran, Korvin Maniphest Tasks: T3087 Differential Revision: https://secure.phabricator.com/D5815
1 parent 7573ad9 commit bda2c57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/applications/conpherence/controller/ConpherenceListController.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,17 @@ private function loadParticipationWithMidCursor(
228228
private function loadConpherenceThreadData($participation) {
229229
$user = $this->getRequest()->getUser();
230230
$conpherence_phids = array_keys($participation);
231+
$conpherences = array();
231232
if ($conpherence_phids) {
232233
$conpherences = id(new ConpherenceThreadQuery())
233234
->setViewer($user)
234235
->withPHIDs($conpherence_phids)
235236
->needParticipantCache(true)
236237
->execute();
237-
}
238238

239-
// this will re-sort by participation data
240-
$conpherences = array_select_keys($conpherences, $conpherence_phids);
239+
// this will re-sort by participation data
240+
$conpherences = array_select_keys($conpherences, $conpherence_phids);
241+
}
241242

242243
return $conpherences;
243244
}

0 commit comments

Comments
 (0)