Browse Source

first iteration of search functionality - likely to fail hard

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

4
app/Http/Controllers/SearchController.php

@ -93,9 +93,9 @@ class SearchController extends Controller
$result['boil'] = $mash->boil;
}
if ($i == 0){
$masharr[] = array('id'=>$mash->id, 'stage'=>$mash->stage, 'duration'=>$mash->duration);
$masharr[] = array('id'=>$mash->id, 'stage'=>$mash->stage, 'duration'=>$mash->duration, 'temp'=>$mash->temp);
} else {
array_push($masharr, array('id'=>$mash->id, 'stage'=>$mash->stage, 'duration'=>$mash->duration));
array_push($masharr, array('id'=>$mash->id, 'stage'=>$mash->stage, 'duration'=>$mash->duration, 'temp'=>$mash->temp));
};
$i++;
};

Loading…
Cancel
Save