From ce5f33c17196c1f32e05576da2fd9719db60c596 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Mar 2024 09:10:04 +0100 Subject: [PATCH] Wrong implicit conversion from double. Fixed by using int. --- inventory/manage/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory/manage/items.php b/inventory/manage/items.php index ae2686cd..3cc6ddaf 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -668,7 +668,7 @@ function generateBarcode() { $tmpBarcodeID = ""; $tmpCountTrys = 0; while ($tmpBarcodeID == "") { - srand ((double) microtime( )*1000000); + srand ((int) microtime( )*1000000); $random_1 = rand(1,9); $random_2 = rand(0,9); $random_3 = rand(0,9); -- 2.30.2