From b84fae26a34b2ffd7358ada6479136aa31ea79c5 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 11 May 2010 03:20:33 +0000 Subject: [PATCH] BUGFIX Checking $this->Data exists before trying to unserialize it --- code/MultiFormStep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MultiFormStep.php b/code/MultiFormStep.php index c5755b6..a181bee 100644 --- a/code/MultiFormStep.php +++ b/code/MultiFormStep.php @@ -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(); } /**