1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00

Differential - fix bogus foreach(null)

Summary: Default $phids to array() and update it if getValue() has something pertinent... Fixes T6292.

Test Plan: just used the ole logic noodle on this one.

Reviewers: chad, epriestley

Reviewed By: chad, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T6292

Differential Revision: https://secure.phabricator.com/D10697
This commit is contained in:
Bob Trahan 2014-10-13 12:57:08 -07:00
parent c728c0ac60
commit c51489f138

View file

@ -63,7 +63,11 @@ final class DifferentialReviewersField
}
public function getRequiredHandlePHIDsForEdit() {
return mpull($this->getValue(), 'getReviewerPHID');
$phids = array();
if ($this->getValue()) {
$phids = mpull($this->getValue(), 'getReviewerPHID');
}
return $phids;
}
public function renderEditControl(array $handles) {