mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
BUGFIX Checking $this->Data exists before trying to unserialize it
This commit is contained in:
parent
8d434eb3ad
commit
b84fae26a3
@ -142,7 +142,7 @@ class MultiFormStep extends DataObject {
|
||||
* @return array
|
||||
*/
|
||||
public function loadData() {
|
||||
return is_string($this->Data) ? unserialize($this->Data) : array();
|
||||
return ($this->Data && is_string($this->Data)) ? unserialize($this->Data) : array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user