Fixed report custom graph search

This commit is contained in:
Enrique Martin 2023-12-18 16:12:08 +01:00
parent c700633fce
commit 321a0075f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;