[svn r12396] Fix the bug with the course visibility : http://projects.dokeos.com/?do=details&id=1542

skala
Julian Prud'homme 19 years ago
parent 8c7c4304b7
commit 5e06e51cd9
  1. 9
      user_portal.php

@ -672,8 +672,13 @@ function get_logged_user_course_html($my_course)
{ {
$result .= $course_teacher; $result .= $course_teacher;
} }
// display the what's new icons
$result .= show_notification($my_course); $current_course_settings = CourseManager :: get_access_settings($my_course['k']);
if($current_course_settings['visibility']==1){
// display the what's new icons
$result .= show_notification($my_course);
}
if ((CONFVAL_showExtractInfo == SCRIPTVAL_InCourseList || CONFVAL_showExtractInfo == SCRIPTVAL_Both) && $nbDigestEntries > 0) if ((CONFVAL_showExtractInfo == SCRIPTVAL_InCourseList || CONFVAL_showExtractInfo == SCRIPTVAL_Both) && $nbDigestEntries > 0)
{ {

Loading…
Cancel
Save