mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
174dd220df
commit
803a050824
2 changed files with 2 additions and 2 deletions
|
@ -490,7 +490,7 @@ final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor {
|
||||||
foreach ($xactions as $xaction) {
|
foreach ($xactions as $xaction) {
|
||||||
$phids = $this->getPHIDTransactionNewValue(
|
$phids = $this->getPHIDTransactionNewValue(
|
||||||
$xaction,
|
$xaction,
|
||||||
$object->getParticipantPHIDs());
|
nonempty($object->getParticipantPHIDs(), array()));
|
||||||
|
|
||||||
if (!$phids) {
|
if (!$phids) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -1413,7 +1413,7 @@ abstract class PhabricatorApplicationTransactionEditor
|
||||||
PhabricatorApplicationTransaction $xaction,
|
PhabricatorApplicationTransaction $xaction,
|
||||||
$old = null) {
|
$old = null) {
|
||||||
|
|
||||||
if ($old) {
|
if ($old !== null) {
|
||||||
$old = array_fuse($old);
|
$old = array_fuse($old);
|
||||||
} else {
|
} else {
|
||||||
$old = array_fuse($xaction->getOldValue());
|
$old = array_fuse($xaction->getOldValue());
|
||||||
|
|
Loading…
Reference in a new issue