From ee255598739f54187566cf83f79ac657cfd12b4e Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Thu, 28 Nov 2024 10:31:56 +0100 Subject: [PATCH] fix: nascosta barra dei plugin se non sono presenti plugin nel modulo --- include/top.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/top.php b/include/top.php index 21e04534a..1df93301e 100755 --- a/include/top.php +++ b/include/top.php @@ -18,6 +18,7 @@ */ use Models\Module; +use Models\Plugin; use Util\FileSystem; include_once __DIR__.'/../core.php'; @@ -63,6 +64,8 @@ foreach (App::getAssets()['print'] as $style) { } if (Auth::check()) { + $has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', 'tab_main')->where('enabled', 1)->count(); + echo '