diff --git a/controllers/presenting.php b/controllers/presenting.php index b7f15e6a4122b26d5362330506da4698c76b9834..0a7e5cf0e59ffa9842f5c62c1de87dfb1d77008c 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();