www/includes/db_product.php

changeset 774
92e1e8f175a2
parent 773
f4161330ed01
child 780
69545bdc2890
--- a/www/includes/db_product.php	Sat Aug 21 16:14:44 2021 +0200
+++ b/www/includes/db_product.php	Tue Aug 31 20:48:37 2021 +0200
@@ -501,7 +501,7 @@
 			else
 				$mash .= ',"step_ph":0.0';
 			if (isset($item['step_sg']) && $item['step_sg'] != "")
-				$mash .= ',"step_sg":' . $item['step_sg'];
+				$mash .= ',"step_sg":' . sprintf("%.4f", $item['step_sg']);
 			else
 				$mash .= ',"step_sg":0.0';
 			$mash .= '}';

mercurial