diff --git a/main/auth/cas/authcas.php b/main/auth/cas/authcas.php index 71a9f9a2d4..d7fbb5637d 100644 --- a/main/auth/cas/authcas.php +++ b/main/auth/cas/authcas.php @@ -163,7 +163,7 @@ function cas_is_authenticated() * Logs out the user of the cas * The user MUST be logged in with cas to use this function * - * @param $uinfo array user info + * @param $uinfo array user info (not needed) * @param $location string redirect url * * @see online_logout() @@ -181,7 +181,7 @@ function cas_logout($uinfo=null, $location=null) if (!isset($location)) $location = api_get_path(WEB_PATH); - phpCAS::logoutWithRedirectService(api_get_path(WEB_PATH)); + phpCAS::logoutWithRedirectService($location); } ?>