Browse Source

Rename variable to avoid ambiguity - refs #7880

Angel Fernando Quiroz Campos 9 years ago
parent
commit
1d3dd6d0b0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/gradebook/lib/be/category.class.php

+ 2 - 2
main/gradebook/lib/be/category.class.php

@@ -1802,8 +1802,8 @@ class Category implements GradebookItem
         if (isset($cats_course) && !empty($cats_course)) {
             $categories = Category::load(null, null, null, $category_id);
             if (!empty($categories)) {
-                foreach ($categories as $category) {
-                    $sum_categories_weight_array[$category->get_id()] = $category->get_weight();
+                foreach ($categories as $subCategory) {
+                    $sum_categories_weight_array[$subCategory->get_id()] = $subCategory->get_weight();
                 }
             } else {
                 $sum_categories_weight_array[$category_id] = $cats_course[0]->get_weight();