diff --git a/htdocs/admin/oauth.php b/htdocs/admin/oauth.php index 77a187d2cde..e98bb9a4fde 100644 --- a/htdocs/admin/oauth.php +++ b/htdocs/admin/oauth.php @@ -247,7 +247,7 @@ if (count($listinsetup) > 0) { print ''.$langs->trans("FeatureNotYetSupported").''; print ''; } - + // Api Id print ''; print ''; @@ -269,25 +269,25 @@ if (count($listinsetup) > 0) { print ''; print ''; } else { - $availablescopes = array_flip(explode(',', $supportedoauth2array[$keyforsupportedoauth2array]['availablescopes'])); - $currentscopes = explode(',', getDolGlobalString($key[4])); - $scopestodispay = array(); - foreach ($availablescopes as $keyscope => $valscope) { - if (in_array($keyscope, $currentscopes)) { - $scopestodispay[$keyscope] = 1; - } else { - $scopestodispay[$keyscope] = 0; - } - } - // Api Scope - print ''; - print ''.$langs->trans("Scopes").''; - print ''; - foreach ($scopestodispay as $scope => $val) { - print ''; - print ''; - } - print ''; + $availablescopes = array_flip(explode(',', $supportedoauth2array[$keyforsupportedoauth2array]['availablescopes'])); + $currentscopes = explode(',', getDolGlobalString($key[4])); + $scopestodispay = array(); + foreach ($availablescopes as $keyscope => $valscope) { + if (in_array($keyscope, $currentscopes)) { + $scopestodispay[$keyscope] = 1; + } else { + $scopestodispay[$keyscope] = 0; + } + } + // Api Scope + print ''; + print ''.$langs->trans("Scopes").''; + print ''; + foreach ($scopestodispay as $scope => $val) { + print ''; + print ''; + } + print ''; } } else { print '';