fixed modules adopted pandora_enterprise#11103

This commit is contained in:
daniel 2023-05-04 18:24:11 +02:00
parent 9b69ec4393
commit 77be60e4a3
2 changed files with 6 additions and 6 deletions

View File

@ -830,8 +830,8 @@ if ($modules !== false) {
$linked = policies_is_module_linked($module['id_agente_modulo']);
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
if ($linked !== false) {
if ($adopt === true) {
if ((bool) $linked !== false) {
if ((bool) $adopt === true) {
$img = 'images/policies_brick.png';
$title = '('.__('Adopted').') '.$policyInfo['name_policy'];
} else {
@ -839,7 +839,7 @@ if ($modules !== false) {
$title = $policyInfo['name_policy'];
}
} else {
if ($adopt === true) {
if ((bool) $adopt === true) {
$img = 'images/policies_not_brick.png';
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$policyInfo['name_policy'];
} else {

View File

@ -1058,8 +1058,8 @@ if (check_login()) {
$policyInfo = policies_info_module_policy($module['id_policy_module']);
$adopt = policies_is_module_adopt($module['id_agente_modulo']);
if ($linked === true) {
if ($adopt === true) {
if ((bool) $linked === true) {
if ((bool) $adopt === true) {
$img = 'images/policies_brick.png';
$title = '('.__('Adopted').') '.$name_policy;
} else {
@ -1067,7 +1067,7 @@ if (check_login()) {
$title = $name_policy;
}
} else {
if ($adopt === true) {
if ((bool) $adopt === true) {
$img = 'images/policies_not_brick.png';
$title = '('.__('Unlinked').') ('.__('Adopted').') '.$name_policy;
} else {