show new week timetable on sunday
This commit is contained in:
parent
49e28c9956
commit
71492cade6
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ class block_timetable extends block_base {
|
|||
$today = new \DateTime();
|
||||
$week = $today->format("W");
|
||||
$dayofweek = $today->format('w');
|
||||
if ($dayofweek > 5 + get_config('timetable', 'saturday')) {
|
||||
if ($dayofweek > 5 + get_config('timetable', 'saturday') || ($dayofweek == 0)) {
|
||||
$week++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue