mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Fail more gracefully when rendering transcripts if handle is missing
Summary: Fixes T4628. I can only partially reproduce the root cause here, but if transcript display rules aren't quite right we should just degrade here rather than fatalling. Transcripts are a messy business by any measure. Test Plan: Sort-of-reproing transcript renders OK now. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4628 Differential Revision: https://secure.phabricator.com/D8554
This commit is contained in:
parent
aea624118b
commit
7167a729bf
1 changed files with 3 additions and 1 deletions
|
@ -297,7 +297,9 @@ final class HeraldTranscriptController extends HeraldController {
|
|||
default:
|
||||
if ($target) {
|
||||
foreach ($target as $k => $phid) {
|
||||
$target[$k] = $handles[$phid]->getName();
|
||||
if (isset($handles[$phid])) {
|
||||
$target[$k] = $handles[$phid]->getName();
|
||||
}
|
||||
}
|
||||
$target = implode("\n", $target);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue