diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app/infoparser.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/private/app/infoparser.php b/lib/private/app/infoparser.php index 3d2b42765aa..0bfbf6bd139 100644 --- a/lib/private/app/infoparser.php +++ b/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(); } } |