Fix loading providers of 2FA app with more than one provider #10789
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Discovered in https://github.com/nextcloud/twofactor_gateway/projects/2:
info.xml with a single provider:
![bildschirmfoto von 2018-08-21 22-19-29](https://user-images.githubusercontent.com/1374172/44428619-30120e80-a595-11e8-847c-9642a471df10.png)
info.xml with multiple providers:
![bildschirmfoto von 2018-08-21 22-20-00](https://user-images.githubusercontent.com/1374172/44428632-386a4980-a595-11e8-97e7-199ab15512af.png)
This fixes the data structure to look the same no matter if one or more providers are specified.