mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-58160' of git://github.com/aolley/moodle
This commit is contained in:
commit
702be5ee47
1 changed files with 1 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue