From 00aec0d678aae3fba3b66982beecc5b7d98cdfc3 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 16:47:32 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 096628d..c53de6a 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -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++; };