Comment 2 for bug 634835

Thanks Antti, I've committed your patch, with minor edits to whitespace for consistency with the coding style at http://wiki.mahara.org/Developer_Area/Coding_guidelines