From 383634465909ab59429d2e7c8f0b6c6b57fd661a Mon Sep 17 00:00:00 2001 From: go-faustino Date: Fri, 5 Jan 2018 19:21:29 +0000 Subject: [PATCH] calWeek value on emptimesheets controller --- .../timemanagement/controllers/EmptimesheetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); }