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:
parent
11cb2f4f6c
commit
09ed95583c
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue