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
ed25c0d2
Commit
ed25c0d2
authored
Nov 08, 2010
by
haemmer
Browse files
Added a check to prevent problems with 'ghost' IdPs in IDProvider.conf.php
parent
d7a065fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions.php
View file @
ed25c0d2
...
...
@@ -590,7 +590,7 @@ function sortIdentityProviders(&$IDProviders){
$sortedCategories
=
Array
();
foreach
(
$IDProviders
as
$entityId
=>
$IDProvider
){
if
(
!
is_array
(
$IDProvider
)){
if
(
!
is_array
(
$IDProvider
)
||
!
isset
(
$IDProvider
[
'Name'
])
){
// Remove any entries that are not arrays
unset
(
$IDProviders
[
$entityId
]);
}
elseif
(
$IDProvider
[
'Type'
]
==
'category'
){
...
...
@@ -601,7 +601,6 @@ function sortIdentityProviders(&$IDProviders){
}
// Sort categories and IdPs
if
(
count
(
$sortedCategories
)
>
1
){
// Sort using index
uasort
(
$sortedCategories
,
'sortUsingTypeIndexAndName'
);
...
...
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