From 24f49eaa7e6a28a75e4e59e2b0eea30f20417dc8 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 31 Oct 2006 04:37:55 +0000 Subject: [PATCH] Killed infinite loop when upgrading teachers! --- lib/accesslib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/accesslib.php b/lib/accesslib.php index 04ff512c171..caf28dd0ed5 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -1231,6 +1231,7 @@ function moodle_install_roles() { // ignore site level teacher assignments if ($teacher->course == SITEID) { $progresscount++; + $rs->MoveNext(); continue; } // populate the user_lastaccess table