From 3bd4de22f55c31e9e4c8e1e049df1aaf3eafcdc4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 20 Sep 2003 17:33:55 +0000 Subject: [PATCH] Changed !empty to isset to avoid warnings. --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index ea300310cb..1cbd5c85b8 100644 --- a/course/lib.php +++ b/course/lib.php @@ -895,7 +895,7 @@ function make_categories_list(&$list, &$parents, $category=NULL, $path="") { if ($categories = get_categories("$category->id")) { // Print all the children recursively foreach ($categories as $cat) { if (!empty($category->id)) { - if (!empty($parents[$category->id])) { + if (isset($parents[$category->id])) { $parents[$cat->id] = $parents[$category->id]; } $parents[$cat->id][] = $category->id; -- 2.39.5