494 $mash .= ',"end_temp":' . $item['end_temp']; |
494 $mash .= ',"end_temp":' . $item['end_temp']; |
495 if (isset($item['step_wg_ratio']) && $item['step_wg_ratio'] != "") |
495 if (isset($item['step_wg_ratio']) && $item['step_wg_ratio'] != "") |
496 $mash .= ',"step_wg_ratio":' . $item['step_wg_ratio']; |
496 $mash .= ',"step_wg_ratio":' . $item['step_wg_ratio']; |
497 else |
497 else |
498 $mash .= ',"step_wg_ratio":0'; |
498 $mash .= ',"step_wg_ratio":0'; |
|
499 if (isset($item['step_ph']) && $item['step_ph'] != "") |
|
500 $mash .= ',"step_ph":' . $item['step_ph']; |
|
501 else |
|
502 $mash .= ',"step_ph":0.0'; |
|
503 if (isset($item['step_sg']) && $item['step_sg'] != "") |
|
504 $mash .= ',"step_sg":' . $item['step_sg']; |
|
505 else |
|
506 $mash .= ',"step_sg":0.0'; |
499 $mash .= '}'; |
507 $mash .= '}'; |
500 //syslog(LOG_NOTICE, $mash); |
508 //syslog(LOG_NOTICE, $mash); |
501 $mashs .= $mash; |
509 $mashs .= $mash; |
502 } |
510 } |
503 } |
511 } |
1010 $yeasts[$i]['y_pitch_temperature'] = 0; |
1018 $yeasts[$i]['y_pitch_temperature'] = 0; |
1011 if (! isset($yeasts[$i]['y_pofpos'])) |
1019 if (! isset($yeasts[$i]['y_pofpos'])) |
1012 $yeasts[$i]['y_pofpos'] = 0; |
1020 $yeasts[$i]['y_pofpos'] = 0; |
1013 if (! isset($yeasts[$i]['y_zymocide'])) |
1021 if (! isset($yeasts[$i]['y_zymocide'])) |
1014 $yeasts[$i]['y_zymocide'] = 0; |
1022 $yeasts[$i]['y_zymocide'] = 0; |
|
1023 if (! isset($yeasts[$i]['y_gr_hl_lo'])) |
|
1024 $yeasts[$i]['y_gr_hl_lo'] = 50; |
|
1025 if (! isset($yeasts[$i]['y_sg_lo'])) |
|
1026 $yeasts[$i]['y_sg_lo'] = 1.04; |
|
1027 if (! isset($yeasts[$i]['y_gr_hl_hi'])) |
|
1028 $yeasts[$i]['y_gr_hl_hi'] = 80; |
|
1029 if (! isset($yeasts[$i]['y_sg_hi'])) |
|
1030 $yeasts[$i]['y_sg_hi'] = 1.08; |
1015 } |
1031 } |
1016 mysqli_free_result($result2); |
1032 mysqli_free_result($result2); |
1017 } |
1033 } |
1018 } |
1034 } |
1019 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE); |
1035 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE); |