www/includes/db_product.php

changeset 517
37cae59e4d8d
parent 515
9d771385a8a0
child 518
00e110567fee
equal deleted inserted replaced
516:28670364bd0c 517:37cae59e4d8d
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));
947 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE); 946 $brew .= ',"yeasts":' . json_encode($yeasts, JSON_UNESCAPED_UNICODE);
948 } else { 947 } else {
949 // Just leave it 948 // Just leave it
950 $brew .= ',"fermentables":' . $row['json_fermentables']; 949 $brew .= ',"fermentables":' . $row['json_fermentables'];
951 $brew .= ',"hops":' . $row['json_hops']; 950 $brew .= ',"hops":' . $row['json_hops'];

mercurial