Permalink
Browse files

MDL-44653 mod_feedback - Include additional name fields using user_pi…

…cture::fields()
  • Loading branch information...
1 parent d64521f commit 7ef24c3bde012875ccabd28effa3b04dad54b34c @grabs grabs committed with marinaglancy Mar 16, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/feedback/lib.php
View
@@ -385,11 +385,11 @@ function feedback_get_recent_mod_activity(&$activities, &$index,
$sqlargs = array();
- //TODO: user user_picture::fields;
- $sql = " SELECT fk . * , fc . * , u.firstname, u.lastname, u.email, u.picture, u.email
- FROM {feedback_completed} fc
- JOIN {feedback} fk ON fk.id = fc.feedback
- JOIN {user} u ON u.id = fc.userid ";
+ $userfields = user_picture::fields('u', null, 'userid');
+ $sql = " SELECT fk . * , fc . * , $userfields
+ FROM {feedback_completed} fc
+ JOIN {feedback} fk ON fk.id = fc.feedback
+ JOIN {user} u ON u.id = fc.userid ";
if ($groupid) {
$sql .= " JOIN {groups_members} gm ON gm.userid=u.id ";

0 comments on commit 7ef24c3

Please sign in to comment.