Skip to content

Commit 09ed955

Browse files
committed
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
1 parent 11cb2f4 commit 09ed955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/page/menu/PhabricatorMainMenuView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ private function renderNotificationMenu() {
271271
->withParticipantPHIDs(array($user->getPHID()))
272272
->withParticipationStatus($unread_status)
273273
->execute();
274-
$message_count_number = $unread[$user->getPHID()];
274+
$message_count_number = idx($unread, $user->getPHID(), 0);
275275
if ($message_count_number > 999) {
276276
$message_count_number = "\xE2\x88\x9E";
277277
}

0 commit comments

Comments
 (0)