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

Minor, ensure auditors is an array.

This commit is contained in:
epriestley 2012-03-06 19:46:26 -08:00
parent a2ac052f1e
commit 1706212e24

View file

@ -72,7 +72,11 @@ final class DifferentialAuditorsFieldSpecification
} }
public function setValueFromStorage($value) { public function setValueFromStorage($value) {
$this->auditors = json_decode($value, true); $auditors = json_decode($value, true);
if (!is_array($auditors)) {
$auditors = array();
}
$this->auditors = $auditors;
return $this; return $this;
} }