MDL-35127 mod_assign More efficient use of expensive database queries
authorEric Merrill <merrill@oakland.edu>
Tue, 26 Feb 2013 14:35:42 +0000 (09:35 -0500)
committerDamyon Wiese <damyon@moodle.com>
Wed, 27 Feb 2013 01:01:25 +0000 (09:01 +0800)
commitd77731d612a814a64575e1647b277dd4d9a24a7f
treeed23c23adee46f7c5f97ec5fda45d139de668dbf
parent738b0965a4968de76226a5ba2abe0027c2504d7e
MDL-35127 mod_assign More efficient use of expensive database queries

Moving two relatively expensive DB queries so they are only executed when needed
instead of on every function call. They will still only execute once, and not
repeatedly during execution of the loop.
mod/assign/lib.php