Fix unserialize parameters issues in old models

[MAILPOET-3296]
This commit is contained in:
Rostislav Wolny
2020-11-30 16:35:45 +01:00
committed by Veljko V
parent ec19b565f5
commit df22724cf7
4 changed files with 9 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class CustomField extends Model {
if (isset($model['params'])) {
$model['params'] = (is_array($this->params))
? $this->params
: unserialize($this->params);
: ($this->params !== null ? unserialize($this->params) : false);
}
return $model;
}