diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index 3359b554283..8ecf7042c58 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -1006,7 +1006,7 @@ class auth_plugin_mnet extends auth_plugin_base { */ function prelogout_hook() { global $MNET, $CFG, $USER; - if ($USER->auth != 'mnet') { + if (!is_enabled_auth('mnet')) { return; }