mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
fixed null
This commit is contained in:
parent
59323c0639
commit
34d8942aa8
@ -131,9 +131,12 @@ class AdvsModulePlugin extends Plugin
|
|||||||
return [
|
return [
|
||||||
new \Twig_SimpleFilter(
|
new \Twig_SimpleFilter(
|
||||||
'ksort',
|
'ksort',
|
||||||
function (array $array) {
|
function ($array) {
|
||||||
ksort($array);
|
if ($array) {
|
||||||
return $array;
|
ksort($array);
|
||||||
|
return $array;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user