Merge branch 'ent-avoid-warnigs-with-php74' into 'develop'

Fixed some codes to avoid warnings with some php74 environment.

See merge request artica/pandorafms!4795
This commit is contained in:
Daniel Rodriguez 2022-04-05 15:17:47 +00:00
commit bcb4efe397
2 changed files with 11 additions and 11 deletions

View File

@ -14530,7 +14530,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
$id_service_child = 0; $id_service_child = 0;
$agent_id = $element['id']; $agent_id = $element['id'];
if (!agents_check_access_agent($agent_id, 'AR')) { if (!agents_check_access_agent($agent_id, 'AR')) {
continue; continue 2;
} }
break; break;
@ -14539,7 +14539,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
$id_service_child = 0; $id_service_child = 0;
$id_agente_modulo = $element['id']; $id_agente_modulo = $element['id'];
if (!agents_check_access_agent(modules_get_agentmodule_agent($id_agente_modulo), 'AR')) { if (!agents_check_access_agent(modules_get_agentmodule_agent($id_agente_modulo), 'AR')) {
continue; continue 2;
} }
break; break;
@ -14554,7 +14554,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
$id_service_child $id_service_child
); );
if ($service_group === false || !check_acl($config['id_user'], $service_group, 'AD')) { if ($service_group === false || !check_acl($config['id_user'], $service_group, 'AD')) {
continue; continue 2;
} }
break; break;
} }

View File

@ -862,7 +862,7 @@ function visual_map_print_item(
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
// ui_print_error_message ("Error connecting to ".$server_name); // ui_print_error_message ("Error connecting to ".$server_name);
continue; break;
} }
} }
@ -967,7 +967,7 @@ function visual_map_print_item(
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
// ui_print_error_message ("Error connecting to ".$server_name); // ui_print_error_message ("Error connecting to ".$server_name);
continue; break;
} }
} }
@ -1113,7 +1113,7 @@ function visual_map_print_item(
['id' => $layoutData['id_metaconsole']] ['id' => $layoutData['id_metaconsole']]
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
continue; break;
} }
} }
@ -1411,7 +1411,7 @@ function visual_map_print_item(
if (!empty($id_metaconsole)) { if (!empty($id_metaconsole)) {
$connection = db_get_row_filter('tmetaconsole_setup', $id_metaconsole); $connection = db_get_row_filter('tmetaconsole_setup', $id_metaconsole);
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
continue; break;
} }
} }
@ -1719,7 +1719,7 @@ function visual_map_print_item(
['id' => $layoutData['id_metaconsole']] ['id' => $layoutData['id_metaconsole']]
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
continue; break;
} }
} }
@ -2173,7 +2173,7 @@ function visual_map_print_item(
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
// ui_print_error_message ("Error connecting to ".$server_name); // ui_print_error_message ("Error connecting to ".$server_name);
continue; break;
} }
} }
@ -3299,7 +3299,7 @@ function visual_map_get_status_element($layoutData)
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
// ui_print_error_message ("Error connecting to ".$server_name); // ui_print_error_message ("Error connecting to ".$server_name);
continue; break;
} }
} }
@ -3385,7 +3385,7 @@ function visual_map_get_status_element($layoutData)
); );
if (metaconsole_load_external_db($connection) != NOERR) { if (metaconsole_load_external_db($connection) != NOERR) {
// ui_print_error_message ("Error connecting to ".$server_name); // ui_print_error_message ("Error connecting to ".$server_name);
continue; break;
} }
} }