Skip to content

Commit

Permalink
Merge branch 'MDL-25191-master' of git://github.com/sammarshallou/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 30, 2011
2 parents 52a3c2c + 0420f8d commit a6b2f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/modinfolib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,8 @@ function get_fast_modinfo(&$course, $userid=0) {
if (count($cache) > MAX_MODINFO_CACHE_SIZE) {
reset($cache);
$key = key($cache);
unset($cache[$key]->instances);
unset($cache[$key]->cms);
unset($cache[$key]);
}

Expand Down

0 comments on commit a6b2f0f

Please sign in to comment.