From b09536c67f758865782882376ad8d10de14e6920 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Nov 2021 11:28:30 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Unsupported operand types: int + string --- resources/inc/class.resources_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index 6f873c0733..3fdbaea1f6 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -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