From 1c24059fe990456d0ea77ac6e0dac897385ee122 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 19 Apr 2018 19:48:20 +0200 Subject: [PATCH] show section for extension only if extension has configuration --- views/bootstrap/class.Settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index f7872f01e..c17f3f22b 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -453,6 +453,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); --> $extconf) { + if($extconf['config']) { $this->showRawConfigHeadline("".$extconf['title']); foreach($extconf['config'] as $confkey=>$conf) { ob_start(); @@ -546,7 +547,8 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); $html = ob_get_clean(); $this->showConfigPlain($conf['title'], isset($conf['help']) ? $conf['help'] : '', $html); } - } + } + } $this->showEndPaneContent('extensions', $currenttab); ?>