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:
290af25
)
MDL-38147 bug fix, changed usage of non-existing function
author
Marina Glancy
<marina@moodle.com>
Tue, 26 Mar 2013 05:17:34 +0000
(16:17 +1100)
committer
Marina Glancy
<marina@moodle.com>
Tue, 26 Mar 2013 05:17:34 +0000
(16:17 +1100)
course/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/course/lib.php
b/course/lib.php
index
e2ec83c
..
be23171
100644
(file)
--- a/
course/lib.php
+++ b/
course/lib.php
@@
-1242,7
+1242,7
@@
function get_course_category_tree($id = 0, $depth = 0) {
$categories = array();
$categoryids = array();
foreach ($coursecat->get_children() as $child) {
- $categories[] = $category =
$child->get_db_record(
);
+ $categories[] = $category =
(object)convert_to_array($child
);
$categoryids[$category->id] = $category;
if (empty($CFG->maxcategorydepth) || $depth <= $CFG->maxcategorydepth) {
list($category->categories, $subcategories) = get_course_category_tree($category->id, $depth+1);