diff --git a/src/applications/conpherence/query/ConpherenceThreadQuery.php b/src/applications/conpherence/query/ConpherenceThreadQuery.php index e21951cf09..a5038b410e 100644 --- a/src/applications/conpherence/query/ConpherenceThreadQuery.php +++ b/src/applications/conpherence/query/ConpherenceThreadQuery.php @@ -227,6 +227,11 @@ final class ConpherenceThreadQuery $conpherence_pic_phids[$conpherence->getPHID()] = $phid; } } + + if (!$conpherence_pic_phids) { + return $this; + } + $files = id(new PhabricatorFileQuery()) ->setViewer($this->getViewer()) ->withPHIDs($conpherence_pic_phids)