Merge branch 'MDL-21201-master-feedback_anon' of https://github.com/DSI-Universite...
authorDan Poltawski <dan@moodle.com>
Mon, 23 Mar 2015 11:03:28 +0000 (11:03 +0000)
committerDan Poltawski <dan@moodle.com>
Mon, 23 Mar 2015 11:03:28 +0000 (11:03 +0000)
mod/feedback/lib.php

index 68ab379..589d3d8 100644 (file)
@@ -393,9 +393,12 @@ function feedback_get_recent_mod_activity(&$activities, &$index,
         $sql .= " JOIN {groups_members} gm ON  gm.userid=u.id ";
     }
 
-    $sql .= " WHERE fc.timemodified > ? AND fk.id = ? ";
+    $sql .= " WHERE fc.timemodified > ?
+                AND fk.id = ?
+                AND fc.anonymous_response = ?";
     $sqlargs[] = $timemodified;
     $sqlargs[] = $cm->instance;
+    $sqlargs[] = FEEDBACK_ANONYMOUS_NO;
 
     if ($userid) {
         $sql .= " AND u.id = ? ";