www/includes/db_product.php

changeset 774
92e1e8f175a2
parent 773
f4161330ed01
child 780
69545bdc2890
equal deleted inserted replaced
773:f4161330ed01 774:92e1e8f175a2
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;

mercurial