Skip to content
Browse files

MDL-26257 Authentication : whitespace/style fixes

  • Loading branch information...
1 parent 1b2a339 commit b503008c6a88d66ad1ca93d63e0d3ccefe24f363 @nebgor nebgor committed Sep 13, 2011
Showing with 3 additions and 8 deletions.
  1. +3 −8 auth/shibboleth/auth.php
View
11 auth/shibboleth/auth.php
@@ -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 {

0 comments on commit b503008

Please sign in to comment.
Something went wrong with that request. Please try again.