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

core:Logout-IFrame: Avoid php notice on "start logout" page.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2941 44740490-163a-0410-bde0-09ae8108e29a
parent 828d7dac
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,11 @@ foreach ($SPs as $assocId => $sp) { ...@@ -29,7 +29,11 @@ foreach ($SPs as $assocId => $sp) {
assert('isset($sp["core:Logout-IFrame:State"])'); assert('isset($sp["core:Logout-IFrame:State"])');
$state = $sp['core:Logout-IFrame:State']; $state = $sp['core:Logout-IFrame:State'];
$spStatus[sha1($assocId)] = $state; $spStatus[sha1($assocId)] = $state;
$spTimeout[sha1($assocId)] = $sp['core:Logout-IFrame:Timeout'] - time(); if (isset($sp['core:Logout-IFrame:Timeout'])) {
$spTimeout[sha1($assocId)] = $sp['core:Logout-IFrame:Timeout'] - time();
} else {
$spTimeout[sha1($assocId)] = 5;
}
if ($state === 'failed') { if ($state === 'failed') {
$nFailed += 1; $nFailed += 1;
} elseif ($state === 'inprogress') { } elseif ($state === 'inprogress') {
......
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