1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Fix an issue with creating new Conpherences

Summary: The participant list can sometimes be `null`, which fails when we try to `array_fuse()` it.

Test Plan: Created a new thread cleanly.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11969
This commit is contained in:
epriestley 2015-03-04 14:36:13 -08:00
parent 174dd220df
commit 803a050824
2 changed files with 2 additions and 2 deletions

View file

@ -490,7 +490,7 @@ final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor {
foreach ($xactions as $xaction) {
$phids = $this->getPHIDTransactionNewValue(
$xaction,
$object->getParticipantPHIDs());
nonempty($object->getParticipantPHIDs(), array()));
if (!$phids) {
continue;

View file

@ -1413,7 +1413,7 @@ abstract class PhabricatorApplicationTransactionEditor
PhabricatorApplicationTransaction $xaction,
$old = null) {
if ($old) {
if ($old !== null) {
$old = array_fuse($old);
} else {
$old = array_fuse($xaction->getOldValue());