www/includes/db_product.php

changeset 515
9d771385a8a0
parent 500
8d53ad389204
child 517
37cae59e4d8d
equal deleted inserted replaced
514:3c680d1dea35 515:9d771385a8a0
439 //syslog(LOG_NOTICE, $yeast); 439 //syslog(LOG_NOTICE, $yeast);
440 $yeasts .= $yeast; 440 $yeasts .= $yeast;
441 } 441 }
442 } 442 }
443 $yeasts .= ']'; 443 $yeasts .= ']';
444 //syslog(LOG_NOTICE, $yeasts); 444 syslog(LOG_NOTICE, $yeasts);
445 $sql .= "', json_yeasts='" . $yeasts; 445 $sql .= "', json_yeasts='" . $yeasts;
446 446
447 $mashs = '['; 447 $mashs = '[';
448 $comma = FALSE; 448 $comma = FALSE;
449 if (isset($_POST['mashs'])) { 449 if (isset($_POST['mashs'])) {
941 } 941 }
942 } 942 }
943 mysqli_free_result($result2); 943 mysqli_free_result($result2);
944 } 944 }
945 } 945 }
946 syslog(LOG_NOTICE, json_encode($yeasts, JSON_UNESCAPED_UNICODE));
946 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE); 947 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE);
947 } else { 948 } else {
948 // Just leave it 949 // Just leave it
949 $brew .= ',"fermentables":' . $row['json_fermentables']; 950 $brew .= ',"fermentables":' . $row['json_fermentables'];
950 $brew .= ',"hops":' . $row['json_hops']; 951 $brew .= ',"hops":' . $row['json_hops'];

mercurial