Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93c544b
)
MDL-38147 fixed small bug on changed categories cache
author
Marina Glancy
<marina@moodle.com>
Tue, 26 Mar 2013 03:09:00 +0000
(14:09 +1100)
committer
Marina Glancy
<marina@moodle.com>
Tue, 26 Mar 2013 03:09:00 +0000
(14:09 +1100)
lib/coursecatlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/coursecatlib.php
b/lib/coursecatlib.php
index
5c10951
..
30752ce
100644
(file)
--- a/
lib/coursecatlib.php
+++ b/
lib/coursecatlib.php
@@
-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];
}