mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Retro-compability
This commit is contained in:
parent
d2cc7d2f31
commit
4595b1ec11
@ -413,7 +413,7 @@ class AgentModuleWidget extends Widget
|
|||||||
array $visualData,
|
array $visualData,
|
||||||
array $allModules
|
array $allModules
|
||||||
):string {
|
):string {
|
||||||
$style = 'display:flex; width:100%; height:100%; margin: 10px;';
|
$style = 'display:flex; width:100%; margin: 10px;';
|
||||||
$table_data = '<div style="'.$style.'">';
|
$table_data = '<div style="'.$style.'">';
|
||||||
$table_data .= '<table class="widget_agent_module transparent mrgn_0px" cellpadding="1" cellspacing="0" border="0">';
|
$table_data .= '<table class="widget_agent_module transparent mrgn_0px" cellpadding="1" cellspacing="0" border="0">';
|
||||||
|
|
||||||
@ -645,9 +645,18 @@ class AgentModuleWidget extends Widget
|
|||||||
|
|
||||||
$all_modules = $target_modules;
|
$all_modules = $target_modules;
|
||||||
} else {
|
} else {
|
||||||
$all_modules = Module::search(
|
if (is_array($target_modules) === true
|
||||||
['id_agente_modulo' => $target_modules]
|
|| is_numeric($target_modules) === true
|
||||||
);
|
) {
|
||||||
|
$all_modules = Module::search(
|
||||||
|
['id_agente_modulo' => $target_modules]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// From previous definitions.
|
||||||
|
$all_modules = Module::search(
|
||||||
|
['id_agente_modulo' => explode(',', $target_modules)]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($all_modules !== null) {
|
if ($all_modules !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user