From a24c6d78ee5910901ad0483f847257b73af26603 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 14:50:09 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 3d1b09e..bb703e2 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -51,7 +51,7 @@ class SearchController extends Controller if ($i == 0) { $result['grains'] = $grainarr; } else { - array_push($result['grains'],$grainarr); + $result['grains'] = array_push($result['grains'],$grainarr); } $i++; };