From: stronk7 <stronk7>
Date: Sat, 20 Sep 2003 17:33:55 +0000 (+0000)
Subject: Changed !empty to isset to avoid warnings.
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3bd4de22f55c31e9e4c8e1e049df1aaf3eafcdc4;p=moodle.git

Changed !empty to isset to avoid warnings.
---

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;