X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=mod%2Fassign%2Flocallib.php;h=2aa605de10b775b144a450dd5581f5887bd1a980;hp=4da2bdc9bb704607b9630d655777b493a3748511;hb=c30bfed180440cba2400cd2e6322baa24afa5c09;hpb=9ce24480917f0145f302af41ee752fa4885b1d1e diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 4da2bdc9bb7..2aa605de10b 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -6420,6 +6420,11 @@ class assign { $submission = $this->get_user_submission($userid, true); } + if ($this->new_submission_empty($data)) { + $notices[] = get_string('submissionempty', 'mod_assign'); + return false; + } + // 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.