mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed some codes to avoid warnings with some php74 environment.
This commit is contained in:
parent
8a5875f987
commit
e0d50facf0
@ -14530,7 +14530,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
|
||||
$id_service_child = 0;
|
||||
$agent_id = $element['id'];
|
||||
if (!agents_check_access_agent($agent_id, 'AR')) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -14539,7 +14539,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
|
||||
$id_service_child = 0;
|
||||
$id_agente_modulo = $element['id'];
|
||||
if (!agents_check_access_agent(modules_get_agentmodule_agent($id_agente_modulo), 'AR')) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -14554,7 +14554,7 @@ function api_set_add_element_service($thrash1, $thrash2, $other, $thrash3)
|
||||
$id_service_child
|
||||
);
|
||||
if ($service_group === false || !check_acl($config['id_user'], $service_group, 'AD')) {
|
||||
continue;
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -862,7 +862,7 @@ function visual_map_print_item(
|
||||
);
|
||||
if (metaconsole_load_external_db($connection) != NOERR) {
|
||||
// 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) {
|
||||
// ui_print_error_message ("Error connecting to ".$server_name);
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1113,7 +1113,7 @@ function visual_map_print_item(
|
||||
['id' => $layoutData['id_metaconsole']]
|
||||
);
|
||||
if (metaconsole_load_external_db($connection) != NOERR) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1411,7 +1411,7 @@ function visual_map_print_item(
|
||||
if (!empty($id_metaconsole)) {
|
||||
$connection = db_get_row_filter('tmetaconsole_setup', $id_metaconsole);
|
||||
if (metaconsole_load_external_db($connection) != NOERR) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1719,7 +1719,7 @@ function visual_map_print_item(
|
||||
['id' => $layoutData['id_metaconsole']]
|
||||
);
|
||||
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) {
|
||||
// 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) {
|
||||
// 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) {
|
||||
// ui_print_error_message ("Error connecting to ".$server_name);
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user