#11728 Fix module plugin server

This commit is contained in:
miguel angel rasteu 2023-07-12 16:05:55 +02:00
parent 676b7a9302
commit 46f898c5a6
1 changed files with 12 additions and 0 deletions

View File

@ -97,6 +97,18 @@ if (check_login()) {
return; return;
} }
$id_plugin = get_parameter('id_plugin', 0);
$id_module_plugin = db_get_value(
'id_plugin',
'tagente_modulo',
'id_agente_modulo',
$get_module_macros
);
if ($id_plugin !== $id_module_plugin) {
$get_plugin_macros = true;
$get_module_macros = 0;
}
if ($get_plugin_macros) { if ($get_plugin_macros) {
if (https_is_running()) { if (https_is_running()) {
header('Content-type: application/json'); header('Content-type: application/json');