Fix loading providers of 2FA app with more than one provider

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2018-08-21 22:53:38 +02:00
parent 1a7516dd93
commit 024a70a188
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ class InfoParser {
if (isset($array['commands']['command']) && is_array($array['commands']['command'])) {
$array['commands'] = $array['commands']['command'];
}
if (isset($array['two-factor-providers']['provider']) && is_array($array['two-factor-providers']['provider'])) {
$array['two-factor-providers'] = $array['two-factor-providers']['provider'];
}
if (isset($array['activity']['filters']['filter']) && is_array($array['activity']['filters']['filter'])) {
$array['activity']['filters'] = $array['activity']['filters']['filter'];
}