Skip to content
Snippets Groups Projects
Commit cf82853a authored by Jacob Christiansen's avatar Jacob Christiansen
Browse files

ConsentAdmin: Minor bugfix in consent disabling

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2226 44740490-163a-0410-bde0-09ae8108e29a
parent 120e800f
No related branches found
No related tags found
No related merge requests found
...@@ -126,9 +126,11 @@ if($session->getIdP() != null) { ...@@ -126,9 +126,11 @@ if($session->getIdP() != null) {
} }
// Remove services, whitch have consent disabled // Remove services, whitch have consent disabled
foreach($idp_metadata['consent.disable'] AS $disable) { if(isset($idp_metadata['consent.disable'])) {
if(array_key_exists($disable, $all_sp_metadata)) { foreach($idp_metadata['consent.disable'] AS $disable) {
unset($all_sp_metadata[$disable]); if(array_key_exists($disable, $all_sp_metadata)) {
unset($all_sp_metadata[$disable]);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment