MDL-53750 shibboleth: Passing a var to empty for PHP 5.4

This commit is contained in:
David Monllao
2016-05-06 09:27:27 +08:00
committed by Andrew Nicols
parent f824aceb50
commit 3032b16b3d
+2 -1
View File
@@ -23,6 +23,7 @@ if (!is_enabled_auth('shibboleth')) {
}
// Front channel logout.
$inputstream = file_get_contents("php://input");
if ($action == 'logout' && !empty($redirect)) {
if ($USER->auth == 'shibboleth') {
@@ -32,7 +33,7 @@ if ($action == 'logout' && !empty($redirect)) {
redirect($redirect);
}
} else if (!empty(file_get_contents("php://input"))) {
} else if (!empty($inputstream)) {
// Back channel logout.
// Set SOAP header.