Move the update of digestmailtimelast to the end of the loop to allow digests to be sent over multiple cron executions if something crash in the middle. MDL-11657
Move the update of digestmailtimelast to the end of the
loop to allow digests to be sent over multiple cron
executions if something crash in the middle. MDL-11657

Merged from MOODLE_19_STABLE

dilawar/moodle