499 if (isset($item['step_ph']) && $item['step_ph'] != "") |
499 if (isset($item['step_ph']) && $item['step_ph'] != "") |
500 $mash .= ',"step_ph":' . $item['step_ph']; |
500 $mash .= ',"step_ph":' . $item['step_ph']; |
501 else |
501 else |
502 $mash .= ',"step_ph":0.0'; |
502 $mash .= ',"step_ph":0.0'; |
503 if (isset($item['step_sg']) && $item['step_sg'] != "") |
503 if (isset($item['step_sg']) && $item['step_sg'] != "") |
504 $mash .= ',"step_sg":' . $item['step_sg']; |
504 $mash .= ',"step_sg":' . sprintf("%.4f", $item['step_sg']); |
505 else |
505 else |
506 $mash .= ',"step_sg":0.0'; |
506 $mash .= ',"step_sg":0.0'; |
507 $mash .= '}'; |
507 $mash .= '}'; |
508 //syslog(LOG_NOTICE, $mash); |
508 //syslog(LOG_NOTICE, $mash); |
509 $mashs .= $mash; |
509 $mashs .= $mash; |