Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
4ea9b04c
Commit
4ea9b04c
authored
Feb 24, 2011
by
haemmer
Browse files
Applied patch for #602 provided by anonymous contributor
parent
43a71244
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.php
View file @
4ea9b04c
...
...
@@ -625,7 +625,7 @@ function sortIdentityProviders(&$IDProviders){
$IDProviders
=
Array
();
// Compose array
$
showU
nknownCategory
=
fals
e
;
$
u
nknownCategory
IsEmpty
=
tru
e
;
while
(
list
(
$categoryKey
,
$categoryValue
)
=
each
(
$sortedCategories
)){
$IDProviders
[
$categoryKey
]
=
$categoryValue
;
...
...
@@ -641,14 +641,14 @@ function sortIdentityProviders(&$IDProviders){
if
(
$categoryKey
==
'unknown'
||
!
isset
(
$sortedCategories
[
$IDProvidersValue
[
'Type'
]])){
$IDProviders
[
$IDProvidersPKey
]
=
$IDProvidersValue
;
unset
(
$sortedIDProviders
[
$IDProvidersPKey
]);
$
showU
nknownCategory
=
tru
e
;
$
u
nknownCategory
IsEmpty
=
fals
e
;
}
}
}
// Check if unkown category is needed
if
(
!
$showU
nknownCategory
){
if
(
$u
nknownCategory
IsEmpty
||
(
count
(
$sortedCategories
)
==
1
)
){
unset
(
$IDProviders
[
'unknown'
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment