fix upgrade path for UON code
CONTRIB-5287 fix paging so that the currdate doesn't change.
tidy up string a bit.
CONTRIB-5245 Check to make sure user can view this attendance before showing related report.
CONTRIB-5245 set up courseatts correctly