diff --git a/pandora_console/include/ajax/demo_data.ajax.php b/pandora_console/include/ajax/demo_data.ajax.php index 0ac5df558f..5f5818cf58 100644 --- a/pandora_console/include/ajax/demo_data.ajax.php +++ b/pandora_console/include/ajax/demo_data.ajax.php @@ -2096,7 +2096,7 @@ if ($action === 'create_demo_data') { } if (isset($items_array['graph_name']) === true && is_string($items_array['graph_name']) === true) { - $id_custom_graph = reset(custom_graphs_search('', io_safe_input($items_array['graph_name'])))['id_graph']; + $id_custom_graph = reset(custom_graphs_search('', $items_array['graph_name']))['id_graph']; if ($id_custom_graph > 0) { $item_values['id_gs'] = $id_custom_graph;