From 86999db7b9af3fb958e2eabb82974e5965d86f79 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 4 Jul 2024 01:12:32 +0200 Subject: [PATCH] Internal: Fix static table name call - refs #5567 --- public/main/inc/lib/plugin.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/main/inc/lib/plugin.class.php b/public/main/inc/lib/plugin.class.php index 203d322b81..e86784bb0a 100644 --- a/public/main/inc/lib/plugin.class.php +++ b/public/main/inc/lib/plugin.class.php @@ -714,7 +714,8 @@ class Plugin */ public function addTab($tabName, $url, $userFilter = null) { - $sql = "SELECT * FROM settings + $table = Database::get_main_table(TABLE_MAIN_SETTINGS); + $sql = "SELECT * FROM $table WHERE variable = 'show_tabs' AND subkey LIKE 'custom_tab_%'";