From 12ebc486551e141907f5fbb6a584e41aa3949907 Mon Sep 17 00:00:00 2001 From: Brett Bieber <brett.bieber@gmail.com> Date: Thu, 13 Aug 2009 20:51:04 +0000 Subject: [PATCH] Add isset before checking --- cas_auth/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_auth/start.php b/cas_auth/start.php index b4dbb8aa..effb5dd0 100644 --- a/cas_auth/start.php +++ b/cas_auth/start.php @@ -100,7 +100,7 @@ // Register the initialisation function register_elgg_event_handler('init','system','cas_auth_init'); // Register CAS logout to main logout only if user logged with CAS - if ( $_SESSION['loggedWithCAS'] ) { + if (isset($_SESSION['loggedWithCAS']) && $_SESSION['loggedWithCAS']===true) { register_elgg_event_handler('logout', 'user', 'logoutCas'); } -- GitLab