From a7cb1e62f460ef8bbf0cd28fe1e575673b2e8e1c Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Tue, 13 Sep 2011 19:15:48 +0800 Subject: [PATCH] MDL-26257 Authentication : whitespace/style fixes --- auth/shibboleth/auth.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/auth/shibboleth/auth.php b/auth/shibboleth/auth.php index 194e4b3aa1e..842b7351153 100644 --- a/auth/shibboleth/auth.php +++ b/auth/shibboleth/auth.php @@ -196,15 +196,10 @@ class auth_plugin_shibboleth extends auth_plugin_base { 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 {