1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Conpherence - fix a bug

Summary: gotta idx() on this as the user may have no conpherences at all.

Test Plan: loaded up my 'noconpherences' user and observed no errors in the error log. my normal test user still worked okay too.

Reviewers: epriestley, garoevans

Reviewed By: garoevans

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5791
This commit is contained in:
Bob Trahan 2013-04-28 11:00:43 -07:00
parent 11cb2f4f6c
commit 09ed95583c

View file

@ -271,7 +271,7 @@ final class PhabricatorMainMenuView extends AphrontView {
->withParticipantPHIDs(array($user->getPHID())) ->withParticipantPHIDs(array($user->getPHID()))
->withParticipationStatus($unread_status) ->withParticipationStatus($unread_status)
->execute(); ->execute();
$message_count_number = $unread[$user->getPHID()]; $message_count_number = idx($unread, $user->getPHID(), 0);
if ($message_count_number > 999) { if ($message_count_number > 999) {
$message_count_number = "\xE2\x88\x9E"; $message_count_number = "\xE2\x88\x9E";
} }