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

Session: Fix broken logout handler code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@691 44740490-163a-0410-bde0-09ae8108e29a
parent 5a58beb6
No related branches found
No related tags found
No related merge requests found
...@@ -476,19 +476,17 @@ class SimpleSAML_Session { ...@@ -476,19 +476,17 @@ class SimpleSAML_Session {
private function callLogoutHandlers() { private function callLogoutHandlers() {
foreach($this->logout_handlers as $handler) { foreach($this->logout_handlers as $handler) {
$logout_handler = array($classname, $functionname);
/* Verify that the logout handler is a valid function. */ /* Verify that the logout handler is a valid function. */
if(!is_callable($logout_handler)) { if(!is_callable($handler)) {
$classname = $logout_handler[0]; $classname = $handler[0];
$functionname = $logout_handler[1]; $functionname = $handler[1];
throw new Exception('Logout handler is not a vaild function: ' . $classname . '::' . throw new Exception('Logout handler is not a vaild function: ' . $classname . '::' .
$functionname); $functionname);
} }
/* Call the logout handler. */ /* Call the logout handler. */
call_user_func($logout_handler); call_user_func($handler);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment