Typo in previous commit: MDL-8973 : Update to the require_logout function

This commit is contained in:
donal72 2007-04-29 15:08:29 +00:00
parent f8bd70303e
commit dd3d9dcf2e

View File

@ -1828,7 +1828,7 @@ function require_logout() {
if (isloggedin()) {
add_to_log(SITEID, "user", "logout", "view.php?id=$USER->id&course=".SITEID, $USER->id, 0, $USER->id);
if (!isset($USER->auth) && empty($USER->auth)) {
if (!isset($USER->auth) || empty($USER->auth)) {
$USER->auth = get_field('user', 'auth', 'id', $USER->id);
}
$authplugin = get_auth_plugin($USER->auth);