Minor - Fixing php 5.3 code

1.9.x
Julio Montoya 11 years ago
parent bd1f34254c
commit e2e612200a
  1. 5
      main/gradebook/lib/flatview_data_generator.class.php

@ -115,8 +115,9 @@ class FlatViewDataGenerator
$sum_categories_weight_array = array();
$mainCategoryId = null;
if (!empty($this->getMainCourseCategory())) {
$mainCategoryId = $this->getMainCourseCategory()->get_id();
$mainCourseCategory = $this->getMainCourseCategory();
if (!empty($mainCourseCategory)) {
$mainCategoryId = $mainCourseCategory->get_id();
}
if (isset($this->category) && !empty($this->category)) {

Loading…
Cancel
Save