mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user