Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2021-03-24 21:31:27 +01:00
commit 020d574816
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -38,6 +38,7 @@ else
$xml = simplexml_load_string(file_get_contents($url)); $xml = simplexml_load_string(file_get_contents($url));
} }
$types = [];
foreach ($xml->xpath('//item') as $item) foreach ($xml->xpath('//item') as $item)
{ {
$key = (string) $item->key; $key = (string) $item->key;
@ -51,6 +52,8 @@ foreach ($xml->xpath('//item') as $item)
$types[(string) $item->type][$key] = $value; $types[(string) $item->type][$key] = $value;
} }
if (count($types))
{
ksort($types); ksort($types);
foreach ($types as $type => $tickets) foreach ($types as $type => $tickets)
{ {
@ -65,3 +68,4 @@ foreach ($types as $type => $tickets)
} }
echo "</ul>\n"; echo "</ul>\n";
} }
}