Fixed an error when saving a project when there is no language data.
This commit is contained in:
parent
78e6a1e396
commit
42701a24db
@ -19,7 +19,7 @@ protected function getName(): string
|
|||||||
private function getValue(): array
|
private function getValue(): array
|
||||||
{
|
{
|
||||||
$value = old($this->getRequestName(), null);
|
$value = old($this->getRequestName(), null);
|
||||||
if (\is_null($value)) {
|
if (\is_null($value) || !isset($value['items']) || !\is_array($value['items'])) {
|
||||||
return $this->value;
|
return $this->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user