MDL-46721 assign: clarify ternerary statement
authorDan Poltawski <dan@moodle.com>
Tue, 7 Jun 2016 11:15:19 +0000 (12:15 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 7 Jun 2016 11:15:19 +0000 (12:15 +0100)
mod/assign/locallib.php

index 63705a8..5160225 100644 (file)
@@ -5468,7 +5468,8 @@ class assign {
      */
     public function send_notification($userfrom, $userto, $messagetype, $eventtype, $updatetime) {
         global $USER;
-        $uniqueid = $this->get_uniqueid_for_user(core_user::is_real_user($userfrom->id) ? $userfrom->id : $USER->id);
+        $userid = core_user::is_real_user($userfrom->id) ? $userfrom->id : $USER->id;
+        $uniqueid = $this->get_uniqueid_for_user($userid);
         self::send_assignment_notification($userfrom,
                                            $userto,
                                            $messagetype,