From 31ac696a949a12c9911136bc79003e1512e041bc Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Tue, 24 Sep 2019 12:48:24 +0200
Subject: [PATCH] Added missing variable to view

---
 app/Http/Controllers/MetaGerSearch.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/Http/Controllers/MetaGerSearch.php b/app/Http/Controllers/MetaGerSearch.php
index 2776e8757..e9343b3eb 100644
--- a/app/Http/Controllers/MetaGerSearch.php
+++ b/app/Http/Controllers/MetaGerSearch.php
@@ -160,12 +160,12 @@ class MetaGerSearch extends Controller
             foreach ($results as $index => $resultTmp) {
                 if ($resultTmp->new) {
                     if ($metager->getFokus() !== "bilder") {
-                        $view = View::make('layouts.result', ['result' => $resultTmp, 'metager' => $metager]);
+                        $view = View::make('layouts.result', ['index' => $index, 'result' => $resultTmp, 'metager' => $metager]);
                         $html = $view->render();
                         $result['newResults'][$index] = $html;
                         $result["imagesearch"] = false;
                     } else {
-                        $view = View::make('layouts.image_result', ['result' => $resultTmp, 'metager' => $metager]);
+                        $view = View::make('layouts.image_result', ['index' => $index, 'result' => $resultTmp, 'metager' => $metager]);
                         $html = $view->render();
                         $result['newResults'][$index] = $html;
                         $result["imagesearch"] = true;
-- 
GitLab