From d2bbcab233dabe3b04f8c3b94a947ec174540418 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sat, 19 Dec 2020 19:52:59 +0100 Subject: run phpcbf and add fix target to Makefile --- app/class/Controllerhome.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/Controllerhome.php') diff --git a/app/class/Controllerhome.php b/app/class/Controllerhome.php index 4dd8227..5c4042b 100644 --- a/app/class/Controllerhome.php +++ b/app/class/Controllerhome.php @@ -52,7 +52,7 @@ class Controllerhome extends Controllerpage $vars['deepsearch'] = $deepsearch['regex']; $vars['searchopt'] = $deepsearch['searchopt']; $vars['display'] = $_GET['display'] ?? 'list'; - + if ($vars['display'] === 'map') { $vars['layout'] = $_GET['layout'] ?? 'cose-bilkent'; $vars['showorphans'] = boolval($_GET['showorphans'] ?? false); @@ -156,7 +156,7 @@ class Controllerhome extends Controllerpage $this->routedirect('home'); } } - + /** * Render every pages in the database */ -- cgit v1.2.3