Skip to content

Commit

Permalink
MDL-53750 shibboleth: Passing a var to empty for PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao authored and andrewnicols committed May 6, 2016
1 parent 93b0e73 commit 9e96e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth/shibboleth/logout.php
Expand Up @@ -23,6 +23,7 @@
}

// Front channel logout.
$inputstream = file_get_contents("php://input");
if ($action == 'logout' && !empty($redirect)) {

if ($USER->auth == 'shibboleth') {
Expand All @@ -32,7 +33,7 @@
redirect($redirect);
}

} else if (!empty(file_get_contents("php://input"))) {
} else if (!empty($inputstream)) {

// Back channel logout.
// Set SOAP header.
Expand Down

0 comments on commit 9e96e0b

Please sign in to comment.