Skip to content

Commit

Permalink
optimzed SQL query in hotpot_get_participants to return only user ids…
Browse files Browse the repository at this point in the history
… (not whole user record)
  • Loading branch information
gbateson committed Jan 14, 2006
1 parent dbddead commit 1a49694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/hotpot/lib.php
Expand Up @@ -1123,15 +1123,15 @@ function hotpot_get_precision(&$hotpot) {
}

function hotpot_get_participants($hotpotid) {
//Must return an array of user records (all data) who are participants
//Must return an array of user ids who are participants
//for a given instance of hotpot. Must include every user involved
//in the instance, independient of his role (student, teacher, admin...)
//See other modules as example.
global $CFG;

return get_records_sql("
SELECT DISTINCT
u.*
u.id, u.id
FROM
{$CFG->prefix}user u,
{$CFG->prefix}hotpot_attempts a
Expand Down

0 comments on commit 1a49694

Please sign in to comment.