From cf82853ab00f81c22ba6e712f303007d4d4e0458 Mon Sep 17 00:00:00 2001 From: Jacob Christiansen <jach@wayf.dk> Date: Fri, 19 Mar 2010 14:18:12 +0000 Subject: [PATCH] ConsentAdmin: Minor bugfix in consent disabling git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2226 44740490-163a-0410-bde0-09ae8108e29a --- modules/consentAdmin/www/consentAdmin.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/consentAdmin/www/consentAdmin.php b/modules/consentAdmin/www/consentAdmin.php index 81d229c49..e49729cb4 100644 --- a/modules/consentAdmin/www/consentAdmin.php +++ b/modules/consentAdmin/www/consentAdmin.php @@ -126,9 +126,11 @@ if($session->getIdP() != null) { } // Remove services, whitch have consent disabled -foreach($idp_metadata['consent.disable'] AS $disable) { - if(array_key_exists($disable, $all_sp_metadata)) { - unset($all_sp_metadata[$disable]); +if(isset($idp_metadata['consent.disable'])) { + foreach($idp_metadata['consent.disable'] AS $disable) { + if(array_key_exists($disable, $all_sp_metadata)) { + unset($all_sp_metadata[$disable]); + } } } -- GitLab