fix PHP 8.0 TypeError: Unsupported operand types: int + string

This commit is contained in:
Ralf Becker 2021-11-10 11:28:30 +01:00
parent 202d8ffc4d
commit b09536c67f

View File

@ -750,7 +750,7 @@ class resources_bo
$end = $start->format('ts') + 86399;
} else {
$start = $start->format('ts');
$end = $start + ($cal_info['duration']);
$end = $start + (int)$cal_info['duration'];
}
// search events matching our timestamps