mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
PORT PHRAS-1862 to 4.1
This commit is contained in:
@@ -82,13 +82,16 @@ class RegistryFormManipulator
|
|||||||
|
|
||||||
private function filterNullValues(array &$array)
|
private function filterNullValues(array &$array)
|
||||||
{
|
{
|
||||||
return array_filter($array, function (&$value) {
|
foreach ($array as $key => &$value) {
|
||||||
if (is_array($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)
|
private function getDefaultData(array $config)
|
||||||
|
|||||||
Reference in New Issue
Block a user