Skip to content
Snippets Groups Projects
Commit 12ebc486 authored by Brett Bieber's avatar Brett Bieber
Browse files

Add isset before checking

parent 789918ab
Branches
Tags
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment