mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Removed needless pass-by-reference to avoid warnings BUG 573 Thanks Eloy!
This commit is contained in:
parent
0eeac484f3
commit
e92fe848ab
1 changed files with 2 additions and 3 deletions
|
@ -821,7 +821,7 @@ function make_categories_list(&$list, &$parents, $category=NULL, $path="") {
|
|||
$parents[$cat->id] = $parents[$category->id];
|
||||
$parents[$cat->id][] = $category->id;
|
||||
}
|
||||
make_categories_list($list, &$parents, $cat, $path);
|
||||
make_categories_list($list, $parents, $cat, $path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -832,7 +832,7 @@ function print_whole_category_list($category=NULL, $displaylist=NULL, $parentsli
|
|||
/// with or without courses included
|
||||
|
||||
if (!$displaylist) {
|
||||
make_categories_list(&$displaylist, &$parentslist);
|
||||
make_categories_list($displaylist, $parentslist);
|
||||
}
|
||||
|
||||
if ($category) {
|
||||
|
@ -871,7 +871,6 @@ function print_whole_category_list($category=NULL, $displaylist=NULL, $parentsli
|
|||
}
|
||||
|
||||
|
||||
|
||||
function print_category_box($category, $depth) {
|
||||
/// Prints the category box in indented fashion
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue