diff --git a/main/gradebook/index.php b/main/gradebook/index.php index 69b571adf2..c82f040677 100755 --- a/main/gradebook/index.php +++ b/main/gradebook/index.php @@ -750,20 +750,21 @@ if ($category != '0') { //hack for inside courses menu cat if (api_is_allowed_to_edit()) { - - $op_cat_weight= get_lang('Weight').': '.$cats[0]->get_weight(); - $opt_cat_cert_min= get_lang('CertificateMinScore').': '.$cats[0]->get_certificate_min_score(); - $opt_cat_descrip= get_lang('GradebookDescriptionLog').': '.$cats[0]->get_description(); - + + $op_cat_weight= ''.get_lang('Weight').''.': '.((intval($cats[0]->get_weight())>0) ? $cats[0]->get_weight() : 0); + $opt_cat_cert_min= ''.get_lang('CertificateMinScore').''.': '.(intval($cats[0]->get_certificate_min_score()>0) ? $cats[0]->get_certificate_min_score() : 0); + $opt_cat_descrip= ''.get_lang('GradebookDescriptionLog').''.': '.(($cats[0]->get_description() == "" || is_null($cats[0]->get_description())) ? get_lang('None') : $cats[0]->get_description()); + $visibility_icon= ($cats[0]->is_visible() == 0) ? 'invisible' : 'visible'; $visibility_command= ($cats[0]->is_visible() == 0) ? 'set_visible' : 'set_invisible'; echo '