This commit is contained in:
Romain Neutron
2012-01-11 15:35:57 +01:00
2 changed files with 367 additions and 1 deletions

View File

@@ -442,8 +442,14 @@ class searchEngine_options implements Serializable
foreach ($serialized as $key => $value)
{
if (in_array($key, array('date_min', 'date_max')))
if(is_null($value))
{
$value = null;
}
elseif (in_array($key, array('date_min', 'date_max')))
{
$value = new DateTime($value);
}
elseif ($value instanceof stdClass)
$value = (array) $value;