Commit eb81c52b authored by Thomas Müller's avatar Thomas Müller
Browse files

fix an issue where the types tag holds an empty string

parent 086ec3de
...@@ -76,11 +76,15 @@ class InfoParser { ...@@ -76,11 +76,15 @@ class InfoParser {
} }
} }
if (array_key_exists('types', $array)) { if (array_key_exists('types', $array)) {
foreach ($array['types'] as $type => $v) { if (is_array($array['types'])) {
unset($array['types'][$type]); foreach ($array['types'] as $type => $v) {
if (is_string($type)) { unset($array['types'][$type]);
$array['types'][] = $type; if (is_string($type)) {
$array['types'][] = $type;
}
} }
} else {
$array['types'] = array();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment