From fa11779376d7c270b2cf2b36edb23d8f1fcca5c0 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 9 Dec 2008 16:35:28 +0000 Subject: [PATCH] MDL-17502 oops, I have overlooked Tim already fixed this - sorry; merged from MOODLE_19_STABLE --- course/lib.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/course/lib.php b/course/lib.php index 3464f65e91..68a1b5ac13 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1767,10 +1767,6 @@ function make_categories_list(&$list, &$parents, $requiredcapability = '', $parents = array(); } - if (is_string($requiredcapability) && $requiredcapability) { - $requiredcapability = array($requiredcapability); - } - if (empty($category)) { // Start at the top level. $category = new stdClass; -- 2.39.5