]> git.mjollnir.org Git - moodle.git/commitdiff
Typo in previous commit: MDL-8973 : Update to the require_logout function
authordonal72 <donal72>
Sun, 29 Apr 2007 15:08:29 +0000 (15:08 +0000)
committerdonal72 <donal72>
Sun, 29 Apr 2007 15:08:29 +0000 (15:08 +0000)
lib/moodlelib.php

index 57892eb1bbcf74566a1cdba78af3e7aa9198d73a..4121c1de17494916ab2cfc84b959691472a52fc7 100644 (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);