diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php index d5bf49249f..1029f2655a 100644 --- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php +++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php @@ -566,6 +566,10 @@ final class ManiphestTaskDetailController extends ManiphestController { } $attached = $task->getAttached(); + if (!is_array($attached)) { + $attached = array(); + } + $file_infos = idx($attached, PhabricatorFilePHIDTypeFile::TYPECONST); if ($file_infos) { $file_phids = array_keys($file_infos);