Major code cleanup of this report (that started as a small code cleanup). None of the functionality should have changed - crosses fingers.
Major code cleanup of this report (that started as a small code cleanup). None of the functionality should have changed - crosses fingers.

dilawar/moodle