mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PORT PHRAS-1862 to 4.1
This commit is contained in:
@@ -82,13 +82,16 @@ class RegistryFormManipulator
|
||||
|
||||
private function filterNullValues(array &$array)
|
||||
{
|
||||
return array_filter($array, function (&$value) {
|
||||
foreach ($array as $key => &$value) {
|
||||
if (is_array($value)) {
|
||||
$value = $this->filterNullValues($value);
|
||||
$this->filterNullValues($value);
|
||||
}
|
||||
else if ($key !== 'geonames-server' && $value === null) {
|
||||
unset($array[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
return null !== $value;
|
||||
});
|
||||
return $array;
|
||||
}
|
||||
|
||||
private function getDefaultData(array $config)
|
||||
|
Reference in New Issue
Block a user