Merge branch 'MDL-58160_31' of git://github.com/aolley/moodle into MOODLE_31_STABLE
This commit is contained in:
@@ -626,9 +626,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
|
||||
}
|
||||
// We must add countall to all in case it was the requested ID.
|
||||
$all['countall'] = $count;
|
||||
foreach ($all as $key => $children) {
|
||||
$coursecattreecache->set($key, $children);
|
||||
}
|
||||
$coursecattreecache->set_many($all);
|
||||
if (array_key_exists($id, $all)) {
|
||||
return $all[$id];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user