X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b0f4500c3419b10317c5e976f6bd357efdf8b049..refs/pull/2734/head:/app/Settings/SettingService.php diff --git a/app/Settings/SettingService.php b/app/Settings/SettingService.php index feb54c30a..310e0ccff 100644 --- a/app/Settings/SettingService.php +++ b/app/Settings/SettingService.php @@ -176,7 +176,7 @@ class SettingService */ protected function formatArrayValue(array $value): string { - $values = collect($value)->values()->filter(function(array $item) { + $values = collect($value)->values()->filter(function (array $item) { return count(array_filter($item)) > 0; }); return json_encode($values);