Browse Source

first iteration of search functionality - likely to fail hard

master
jk 3 years ago
parent
commit
00aec0d678
  1. 4
      app/Http/Controllers/SearchController.php

4
app/Http/Controllers/SearchController.php

@ -107,9 +107,9 @@ class SearchController extends Controller
$i = 0; $i = 0;
foreach ($fermentations as $fermentation){ foreach ($fermentations as $fermentation){
if ($i == 0){ 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 { } 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++; $i++;
}; };

Loading…
Cancel
Save