mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-38147 fixed small bug on changed categories cache
This commit is contained in:
parent
93c544bdb0
commit
290af25434
@ -592,10 +592,10 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
|
||||
$all[$defcoursecat->id] = array();
|
||||
$count++;
|
||||
}
|
||||
$all['countall'] = $count;
|
||||
foreach ($all as $key => $children) {
|
||||
$coursecattreecache->set($key, $children);
|
||||
}
|
||||
$coursecattreecache->set('countall', $count);
|
||||
if (array_key_exists($id, $all)) {
|
||||
return $all[$id];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user