Skip to content

Commit 538d8f2

Browse files
committed
Fix empty property list in Phriction
Summary: Fixes T3944 Test Plan: Will test on secure Reviewers: epriestley, staticshock CC: Korvin, epriestley, aran Maniphest Tasks: T3944 Differential Revision: https://secure.phabricator.com/D7291
1 parent 97c690f commit 538d8f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/applications/phriction/controller/PhrictionDocumentController.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ public function processRequest() {
162162
$header = id(new PHUIHeaderView())
163163
->setHeader($page_title);
164164

165-
$prop_list = new PHUIPropertyGroupView();
166-
$prop_list->addPropertyList($properties);
165+
$prop_list = null;
166+
if ($properties) {
167+
$prop_list = new PHUIPropertyGroupView();
168+
$prop_list->addPropertyList($properties);
169+
}
167170

168171
$page_content = id(new PHUIDocumentView())
169172
->setOffset(true)

0 commit comments

Comments
 (0)