Mod attendance 14

This should fix #41 in https://github.com/danmarsden/moodle-mod_attendance