diff --git a/application/modules/timemanagement/controllers/EmptimesheetsController.php b/application/modules/timemanagement/controllers/EmptimesheetsController.php index 53f5ff47b..b5429225f 100644 --- a/application/modules/timemanagement/controllers/EmptimesheetsController.php +++ b/application/modules/timemanagement/controllers/EmptimesheetsController.php @@ -408,7 +408,7 @@ public function emptimesheetweeklyAction(){ $calenderWeeksArray = range($firstCalWeek, $lastCalWeek); $calWeek = $calenderWeeksArray[$week-1]; - if($calWeek == null || $calWeek == '') { + if($calWeek == null || $calWeek == '' || $calWeek == '0') { $calWeek = strftime('%U',strtotime($selYrMon.'-01')); }