From 382c39e8173796c51d56ebb752651d23d52743b6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 16 Nov 2021 18:27:40 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Unsupported operand types: string * float --- timesheet/inc/class.timesheet_datasource.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_datasource.inc.php b/timesheet/inc/class.timesheet_datasource.inc.php index 61309b9013..a76d345044 100644 --- a/timesheet/inc/class.timesheet_datasource.inc.php +++ b/timesheet/inc/class.timesheet_datasource.inc.php @@ -62,7 +62,7 @@ class timesheet_datasource extends datasource 'pl_id' => $data['pl_id'], 'pe_unitprice' => $data['ts_unitprice'], 'pe_used_quantity' => $data['ts_quantity'], - 'pe_used_budget' => $data['ts_quantity'] * (float)$data['ts_unitprice'], + 'pe_used_budget' => (float)$data['ts_quantity'] * (float)$data['ts_unitprice'], 'pe_completion' => 100, 'cat_id' => $data['cat_id'], );