BUGFIX Checking $this->Data exists before trying to unserialize it

This commit is contained in:
Sean Harvey 2010-05-11 03:20:33 +00:00
parent 8d434eb3ad
commit b84fae26a3

View File

@ -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();
}
/**