From 533f791072c8f2d7afa097cb612cbc302df2873b Mon Sep 17 00:00:00 2001 From: donal72 Date: Mon, 30 Apr 2007 03:14:43 +0000 Subject: [PATCH] MDL-8973 : Undo API change in previous commit --- lib/moodlelib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 4121c1de17..42ee75403b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1828,11 +1828,11 @@ 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)) { - $USER->auth = get_field('user', 'auth', 'id', $USER->id); + $authsequence = get_enabled_auth_plugins(); // auths, in sequence + foreach($authsequence as $authname) { + $authplugin = get_auth_plugin($authname); + $authplugin->prelogout_hook(); } - $authplugin = get_auth_plugin($USER->auth); - $authplugin->prelogout_hook(); } if (ini_get_bool("register_globals") and check_php_version("4.3.0")) { -- 2.39.5