Skip to content

Commit

Permalink
Merge branch 'MDL-26257-21' of git://github.com/bostelm/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_21_STABLE
  • Loading branch information
Aparup Banerjee committed Sep 13, 2011
2 parents d8f2500 + 033a066 commit edb8077
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions auth/shibboleth/auth.php
Expand Up @@ -193,11 +193,11 @@ function loginpage_hook() {
*
*/
function logoutpage_hook() {
global $redirect;
global $SESSION, $redirect;

// Only do this if logout handler is defined
if (
isset($this->config->logout_handler)
// Only do this if logout handler is defined, and if the user is actually logged in via Shibboleth
if ( isset($SESSION->shibboleth_session_id)
&& isset($this->config->logout_handler)
&& !empty($this->config->logout_handler)
){
// Check if there is an alternative logout return url defined
Expand Down

0 comments on commit edb8077

Please sign in to comment.