MDL-27140 weeks course format - incorrect roll of dates on hidden sections

Credit goes to Nikhil Gupta, big thanks!
This commit is contained in:
Eloy Lafuente (stronk7) 2011-05-09 18:15:10 +02:00
parent 804ebc77b8
commit 162bbbe2f4

View file

@ -89,7 +89,7 @@ function callback_weeks_get_section_name($course, $section) {
foreach ($sections as $sec) {
if ($sec->id == $section->id) {
break;
} else if ($sec->visible && $sec->section != 0) {
} else if ($sec->section != 0) {
$weekdate += 604800;
}
}