]> git.mjollnir.org Git - moodle.git/commitdiff
Changed !empty to isset to avoid warnings.
authorstronk7 <stronk7>
Sat, 20 Sep 2003 17:33:55 +0000 (17:33 +0000)
committerstronk7 <stronk7>
Sat, 20 Sep 2003 17:33:55 +0000 (17:33 +0000)
course/lib.php

index ea300310cb48d82f912c80b2bc615c8eca3ea61d..1cbd5c85b825ae376fe87a9dd03bf962735eb785 100644 (file)
@@ -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;