]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9297 - fixed broken mnet logout caused by my auth refactoring; merged from MOODLE...
authorskodak <skodak>
Wed, 11 Apr 2007 14:01:59 +0000 (14:01 +0000)
committerskodak <skodak>
Wed, 11 Apr 2007 14:01:59 +0000 (14:01 +0000)
auth/mnet/auth.php

index 3359b5542839f2288f78c2f64bf43e7afc97c902..8ecf7042c586512883d29d69eae99ea4179cbdc9 100644 (file)
@@ -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;
         }