Skip to content

Commit 02ccca4

Browse files
author
epriestley
committed
Fix Maniphest fatal if attached tasks are not an array
Summary: Fixes T3678. I think some very old rows may have a junk value here. This will be obsoleted by ApplicationTransactions and other modernization, most likely, so just fix it locally. Test Plan: looked at a task Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3678 Differential Revision: https://secure.phabricator.com/D6677
1 parent 3fd2c0f commit 02ccca4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/applications/maniphest/controller/ManiphestTaskDetailController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ private function buildPropertyView(
566566
}
567567

568568
$attached = $task->getAttached();
569+
if (!is_array($attached)) {
570+
$attached = array();
571+
}
572+
569573
$file_infos = idx($attached, PhabricatorFilePHIDTypeFile::TYPECONST);
570574
if ($file_infos) {
571575
$file_phids = array_keys($file_infos);

0 commit comments

Comments
 (0)