From e92fe848abd7735375f7fa402a443066de633770 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 31 Jul 2003 12:23:49 +0000 Subject: [PATCH] Removed needless pass-by-reference to avoid warnings BUG 573 Thanks Eloy! --- course/lib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/course/lib.php b/course/lib.php index a505ae5636..2c205a4fd9 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 -- 2.39.5