diff -r d5fad7d80899 -r dfc850e6ee1f www/includes/db_product.php --- a/www/includes/db_product.php Sun Dec 08 11:27:19 2019 +0100 +++ b/www/includes/db_product.php Tue Dec 10 20:11:37 2019 +0100 @@ -965,7 +965,22 @@ $yeasts[$i]['y_pofpos'] = intval($obj->pofpos); if (! isset($yeasts[$i]['y_zymocide'])) $yeasts[$i]['y_zymocide'] = intval($obj->zymocide); - } + } else { + if (! isset($yeasts[$i]['y_sta1'])) + $yeasts[$i]['y_sta1'] = 0; + if (! isset($yeasts[$i]['y_bacteria'])) + $yeasts[$i]['y_bacteria'] = 0; + if (! isset($yeasts[$i]['y_harvest_top'])) + $yeasts[$i]['y_harvest_top'] = 0; + if (! isset($yeasts[$i]['y_harvest_time'])) + $yeasts[$i]['y_harvest_time'] = 0; + if (! isset($yeasts[$i]['y_pitch_temperature'])) + $yeasts[$i]['y_pitch_temperature'] = 0; + if (! isset($yeasts[$i]['y_pofpos'])) + $yeasts[$i]['y_pofpos'] = 0; + if (! isset($yeasts[$i]['y_zymocide'])) + $yeasts[$i]['y_zymocide'] = 0; + } mysqli_free_result($result2); } }