www/rec_print.php

changeset 396
804800d8e885
parent 392
544d7d0183b2
child 449
a1d6b9eec988
--- a/www/rec_print.php	Tue Jun 04 16:38:53 2019 +0200
+++ b/www/rec_print.php	Tue Jun 04 19:50:06 2019 +0200
@@ -224,10 +224,10 @@
 			$total_hops += $amount;
 
 			$moment = $hopuse[$item['h_useat']];
-			if ($item['h_useat'] == 2) {	// Boil
-				$moment   = "Koken ".$time." min";
+			if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) {	// Boil or Whirlpool
+				$moment  = $hopuse[$item['h_useat']].' '.$time." min";
 			} else if ($item['h_useat'] == 5) {	// Dryhop
-				$moment   = 'Koudhop '.sprintf("%.0f", $time / 1440).' dagen';
+				$moment  = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen';
 			}
 			$ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, $row['ibu_method']);
 			$total_ibus += $ibu;

mercurial