|
|
@ -107,9 +107,9 @@ class SearchController extends Controller |
|
|
|
$i = 0; |
|
|
|
foreach ($fermentations as $fermentation){ |
|
|
|
if ($i == 0){ |
|
|
|
$fermentarr = array('stage'=>($i + 1), 'temp'=>$fermentation->temperature, 'duration'=>$fermentation->duration); |
|
|
|
$fermentarr = array('stage'=>$i + 1, 'temp'=>$fermentation->temperature, 'duration'=>$fermentation->duration); |
|
|
|
} else { |
|
|
|
array_push($fermentarr, array('stage'=>($i + 1), 'temp'=>$fermentation->temperature, 'duration'=>$fermentation->duration)); |
|
|
|
array_push($fermentarr, array('stage'=>$i + 1, 'temp'=>$fermentation->temperature, 'duration'=>$fermentation->duration)); |
|
|
|
}; |
|
|
|
$i++; |
|
|
|
}; |
|
|
|