// Check that no one has modified the submission since we started looking at it.
if (isset($data->lastmodified) && ($submission->timemodified > $data->lastmodified)) {
// Another user has submitted something. Notify the current user.
// Check that no one has modified the submission since we started looking at it.
if (isset($data->lastmodified) && ($submission->timemodified > $data->lastmodified)) {
// Another user has submitted something. Notify the current user.