danmarsden/moodle-plagiarism_turnitin — pull request #18 by peterbulmer (2011-12-06 03:17:51+00:00)
Title: deal with undefined profile

This commit deals with the situation where profile is not defined - eg when user has logged in over web services.

There should be no extra db queries in the case of a normal login.