fix an issue where the types tag holds an empty string

remotes/origin/fix-10825
Thomas Müller 12 years ago
parent 086ec3de15
commit eb81c52b95
  1. 12
      lib/private/app/infoparser.php

@ -76,11 +76,15 @@ class InfoParser {
}
}
if (array_key_exists('types', $array)) {
foreach ($array['types'] as $type => $v) {
unset($array['types'][$type]);
if (is_string($type)) {
$array['types'][] = $type;
if (is_array($array['types'])) {
foreach ($array['types'] as $type => $v) {
unset($array['types'][$type]);
if (is_string($type)) {
$array['types'][] = $type;
}
}
} else {
$array['types'] = array();
}
}

Loading…
Cancel
Save