]> git.mjollnir.org Git - moodle.git/commit
MDL-12546 - The choice module was calling get_users_by_capability, which hammers...
authortjhunt <tjhunt>
Tue, 11 Dec 2007 18:49:56 +0000 (18:49 +0000)
committertjhunt <tjhunt>
Tue, 11 Dec 2007 18:49:56 +0000 (18:49 +0000)
commit89d7d96279c700a694b4894ca8518c979492f00f
tree4a00b2c9d342276d6be34eb74f15d9e95d26942e
parent02e48901b4d3a60944a193f3ae335cbec74fdbe9
MDL-12546 - The choice module was calling get_users_by_capability, which hammers the database and returns lots of data, inside a loop over users - and it was calling it with identical parameters each time. Ouch!

Actually, since the fix for MDL-12331, which changed the get_users_by_capability call at the top of this function, the check it was doing is entirely redundant anyway, so I removed it.

Merged from MOODLE_19_STABLE.
mod/choice/lib.php