Merge pull request #930 from openclassify/vedatak

fixed null
This commit is contained in:
Muammer Top 2021-01-29 16:02:04 +03:00 committed by GitHub
commit 5202736a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,9 +131,12 @@ class AdvsModulePlugin extends Plugin
return [
new \Twig_SimpleFilter(
'ksort',
function (array $array) {
ksort($array);
return $array;
function ($array) {
if ($array) {
ksort($array);
return $array;
}
return null;
}
),
];