Commit f5473961 authored by zYne's avatar zYne

Little fix for cleanData method

parent 46f2cbe4
......@@ -270,11 +270,13 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
case "object":
if($tmp[$name] !== self::$null) {
if( ! is_array($tmp[$name] && ! is_object($tmp[$name]))
if(is_string($tmp[$name])) {
$value = unserialize($tmp[$name]);
if($value === false)
throw new Doctrine_Exception("Unserialization of $name failed. ".var_dump($tmp[$name],true));
} else
$value = $tmp[$name];
$this->data[$name] = $value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment