diff --git a/main/gradebook/lib/be/category.class.php b/main/gradebook/lib/be/category.class.php index 8240f37c8b..c117f38753 100755 --- a/main/gradebook/lib/be/category.class.php +++ b/main/gradebook/lib/be/category.class.php @@ -987,7 +987,6 @@ class Category implements GradebookItem $session_id ); - $catweight = 0; if ($cat->get_weight() != 0) { $catweight = $cat->get_weight(); diff --git a/main/gradebook/lib/gradebook_result.class.php b/main/gradebook/lib/gradebook_result.class.php index ea9aa9be26..1779640808 100644 --- a/main/gradebook/lib/gradebook_result.class.php +++ b/main/gradebook/lib/gradebook_result.class.php @@ -38,7 +38,6 @@ class GradeBookResult if (isset($header_col['header'])) { $data .= str_replace("\r\n", ' ', api_html_entity_decode(strip_tags($header_col['header']))).';'; } - } else { $data .= str_replace("\r\n", ' ', api_html_entity_decode(strip_tags($header_col))).';'; }