]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding default key value pair for 'types'
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 1 Dec 2014 16:35:01 +0000 (17:35 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 4 Dec 2014 10:40:33 +0000 (11:40 +0100)
lib/private/app/infoparser.php

index b4bdbea5c04312fe358af607d0c39f14de9a728c..b0327fa4fd13868cbb86b1e1e79d6a2b6564c548 100644 (file)
@@ -60,6 +60,9 @@ class InfoParser {
                if (!array_key_exists('public', $array)) {
                        $array['public'] = array();
                }
+               if (!array_key_exists('types', $array)) {
+                       $array['types'] = array();
+               }
 
                if (array_key_exists('documentation', $array)) {
                        foreach ($array['documentation'] as $key => $url) {