www/includes/db_product.php

changeset 738
11e6bd8d8107
parent 726
872a3635e4ef
child 740
04c0e444e48e
--- a/www/includes/db_product.php	Wed Apr 14 10:49:37 2021 +0200
+++ b/www/includes/db_product.php	Thu Apr 15 10:57:01 2021 +0200
@@ -496,6 +496,14 @@
                                 $mash .= ',"step_wg_ratio":' . $item['step_wg_ratio'];
                         else
                                 $mash .= ',"step_wg_ratio":0';
+			if (isset($item['step_ph']) && $item['step_ph'] != "")
+				$mash .= ',"step_ph":' . $item['step_ph'];
+			else
+				$mash .= ',"step_ph":0.0';
+			if (isset($item['step_sg']) && $item['step_sg'] != "")
+				$mash .= ',"step_sg":' . $item['step_sg'];
+			else
+				$mash .= ',"step_sg":0.0';
 			$mash .= '}';
 			//syslog(LOG_NOTICE, $mash);
 			$mashs .= $mash;
@@ -1012,6 +1020,14 @@
                                                         $yeasts[$i]['y_pofpos'] = 0;
                                                 if (! isset($yeasts[$i]['y_zymocide']))
                                                         $yeasts[$i]['y_zymocide'] = 0;
+						if (! isset($yeasts[$i]['y_gr_hl_lo']))
+                                                        $yeasts[$i]['y_gr_hl_lo'] = 50;
+						if (! isset($yeasts[$i]['y_sg_lo']))
+                                                        $yeasts[$i]['y_sg_lo'] = 1.04;
+						if (! isset($yeasts[$i]['y_gr_hl_hi']))
+                                                        $yeasts[$i]['y_gr_hl_hi'] = 80;
+						if (! isset($yeasts[$i]['y_sg_hi']))
+                                                        $yeasts[$i]['y_sg_hi'] = 1.08;
                                         }
 					mysqli_free_result($result2);
 				}

mercurial