From 1add43f24fb5c89a0e9db08ed6f3dc7091d982e1 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Wed, 21 Jan 2026 20:43:23 +0100 Subject: [PATCH] Bugfix PHP8 Zeiterfassung --- .../TimerecordingEmployee/TimerecordingEmployeeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] . "
";