Skip to content
Snippets Groups Projects
Commit b0463e04 authored by Olav Morken's avatar Olav Morken
Browse files

Check for existence of IdP metadata element 'requireconsent' before attempting to use it.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@89 44740490-163a-0410-bde0-09ae8108e29a
parent 96721a24
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,8 @@ if (!$session->isAuthenticated() ) {
* Dealing with attribute release consent.
*/
if ($idpmeta['requireconsent']) {
if (array_key_exists('requireconsent', $idpmeta)
&& $idpmeta['requireconsent']) {
if (!isset($_GET['consent'])) {
......
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