diff --git a/application/TimerecordingEmployee/TimerecordingEmployeeController.php b/application/TimerecordingEmployee/TimerecordingEmployeeController.php index f3a2fa271..3eae25209 100644 --- a/application/TimerecordingEmployee/TimerecordingEmployeeController.php +++ b/application/TimerecordingEmployee/TimerecordingEmployeeController.php @@ -284,7 +284,7 @@ class TimerecordingEmployeeController extends mfBaseController foreach ($TimerecordingEmployeeWorkingHourHistory as $key => $value) { $workinghours = json_decode($value->workinghours, true); $datetimetext = ""; - $secondcounter = ""; + $secondcounter = 0; foreach ($workinghours as $key2 => $data) { $secondcounter = $secondcounter + strtotime(date("Y-m-d " . $data['end'] . ":00")) - strtotime(date("Y-m-d " . $data['start'] . ":00")); $datetimetext .= $days_short[$data['day']] . " " . $data['start'] . " - " . $data['end'] . "
";