use while loop instead of foreach loop during regrade, to allow for the possibility of splitting a regrade and so avoid "maximum execution time exceeded" errors
use while loop instead of foreach loop during regrade, to allow for the possibility of splitting a regrade and so avoid "maximum execution time exceeded" errors

dilawar/moodle