mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Minor, ensure auditors is an array.
This commit is contained in:
parent
a2ac052f1e
commit
1706212e24
1 changed files with 5 additions and 1 deletions
|
@ -72,7 +72,11 @@ final class DifferentialAuditorsFieldSpecification
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue