1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00

Conpherence - fix bug with possible null value

Summary: Fixes T7675. epriestley caught this in code review and I didn't implement it all the way

Test Plan: logicypoo

Reviewers: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7675

Differential Revision: https://secure.phabricator.com/D12181
This commit is contained in:
Bob Trahan 2015-03-27 06:32:23 -07:00
parent 0dda809da6
commit a428bb8ad4

View file

@ -35,7 +35,7 @@ final class ConpherenceThreadListView extends AphrontView {
$grouped = mgroup($this->threads, 'getIsRoom');
$rooms = idx($grouped, true, array());
$rooms = array_slice($grouped[true], 0, 5);
$rooms = array_slice($rooms, 0, 5);
$policies = array();
foreach ($rooms as $room) {