getValue())) { $serializedValue = $this->getValue(); $unserializedValue = false; if (!empty($serializedValue)) { try { $unserializedValue = Mage::helper('core/unserializeArray') ->unserialize($serializedValue); } catch (Exception $e) { Mage::logException($e); } } $this->setValue($unserializedValue); } } protected function _beforeSave() { if (is_array($this->getValue())) { $this->setValue(serialize($this->getValue())); } } }