mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Legalpad - fix a bug for documents with no signatures
Summary: be sure to use array() (and not null) so we don't fatal if we have no signatures Test Plan: no more fatal when editing a signature-less document Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8000
This commit is contained in:
parent
7686efb896
commit
71b729f5e5
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ final class LegalpadDocumentQuery
|
|||
$signatures = mgroup($signatures, 'getDocumentPHID');
|
||||
|
||||
foreach ($documents as $document) {
|
||||
$sigs = idx($signatures, $document->getPHID());
|
||||
$sigs = idx($signatures, $document->getPHID(), array());
|
||||
foreach ($sigs as $index => $sig) {
|
||||
if ($sig->getDocumentVersion() != $document->getVersions()) {
|
||||
unset($sigs[$index]);
|
||||
|
|
Loading…
Reference in a new issue