From c035d6f7bdca86862da131e6c44fc96e8846c709 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Fri, 3 May 2024 12:08:50 +0000
Subject: [PATCH] fixes #35

---
 controllers/presenting.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/controllers/presenting.php b/controllers/presenting.php
index b7f15e6..0a7e5cf 100755
--- a/controllers/presenting.php
+++ b/controllers/presenting.php
@@ -32,10 +32,7 @@ class PresentingController extends MarketController
         $this->tags = $tags_statement->fetchAll(PDO::FETCH_ASSOC);
 
         // Set view
-        $_SESSION['pluginmarket']['view'] = Request::get('view') ? : $_SESSION['pluginmarket']['view'];
-        if (!isset($_SESSION['pluginmarket']['view'])) {
-            $_SESSION['pluginmarket']['view'] = 'tiles';
-        }
+        $_SESSION['pluginmarket']['view'] = Request::get('view', $_SESSION['pluginmarket']['view'] ?? 'tiles');
 
         // Sidebar
         $sidebar = Sidebar::Get();
-- 
GitLab