mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
BUGFIX Fixed error trying to unserialize a value that isn't an integer
This commit is contained in:
parent
2336168437
commit
624a93f19b
@ -116,7 +116,7 @@ class EditableFormField extends DataObject {
|
||||
* @return Array Return all the Settings
|
||||
*/
|
||||
protected function getFieldSettings() {
|
||||
return (isset($this->CustomSettings)) ? unserialize($this->CustomSettings) : array();
|
||||
return (!empty($this->CustomSettings)) ? unserialize($this->CustomSettings) : array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user