Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-26257-21' of git://github.com/bostelm/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
commit edb8077e7bf153c1ac7782439a1357d1aac13b72 2 parents d8f2500 + 033a066
@nebgor nebgor authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 auth/shibboleth/auth.php
View
8 auth/shibboleth/auth.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.