MultiSites.getAll should always return an array of objects but sometimes it returns only a simple array (if there is only one site that matches pattern I think).
label: "Example Site",
should be wrapped in [...].
I tried to workaround this issue in Piwik Mobile but it does also not return the idSite if there is only one result which makes it impossible.
This leads to an "Invalid format error" in Piwik Mobile when using the search.
refs #5987 I think this should make sure we always get an array if Mu…
…ltiSites.getAll finds only one site
refs #5987 fix test which proofs issue is fixed now and added change …