Navigation Menu

Skip to content

Commit

Permalink
MDL-26257 Authentication : whitespace/style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Sep 13, 2011
1 parent edb8077 commit a7cb1e6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions auth/shibboleth/auth.php
Expand Up @@ -196,15 +196,10 @@ function logoutpage_hook() {
global $SESSION, $redirect;

// 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)
){
$logouthandlervalid = isset($this->config->logout_handler) && !empty($this->config->logout_handler);
if (isset($SESSION->shibboleth_session_id) && $logouthandlervalid ) {
// Check if there is an alternative logout return url defined
if (
isset($this->config->logout_return_url)
&& !empty($this->config->logout_return_url)
){
if (isset($this->config->logout_return_url) && !empty($this->config->logout_return_url)) {
// Set temp_redirect to alternative return url
$temp_redirect = $this->config->logout_return_url;
} else {
Expand Down

0 comments on commit a7cb1e6

Please sign in to comment.