MDL-46310 assign Prevent blind marking submission notification email being sent to...
authorMichael Aherne <michael.aherne@strath.ac.uk>
Fri, 10 Jan 2014 12:37:12 +0000 (12:37 +0000)
committerMichael Aherne <michael.aherne@strath.ac.uk>
Fri, 10 Jan 2014 15:19:04 +0000 (15:19 +0000)
mod/assign/locallib.php

index 2d5acfd..41cdf77 100644 (file)
@@ -4401,6 +4401,7 @@ class assign {
 
         $info = new stdClass();
         if ($blindmarking) {
+            $userfrom = clone($userfrom);
             $info->username = get_string('participant', 'assign') . ' ' . $uniqueidforuser;
             $userfrom->firstname = get_string('participant', 'assign');
             $userfrom->lastname = $uniqueidforuser;