Skip to content

Commit

Permalink
QA: Fix: #6013 - SQL Errors on first view of tree and pre views
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Dec 27, 2024
1 parent dee98cf commit b0b3fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/html_graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ function html_graph_preview_view() {
}

if (get_request_var('graphs') == '-1') {
$graph_rows = read_user_setting('preview_graphs_per_page', read_config_option('preview_graphs_per_page', 20));
$graph_rows = read_user_setting('preview_graphs_per_page', read_config_option('preview_graphs_per_page'), 20);
} else {
$graph_rows = get_request_var('graphs');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/html_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ function grow_right_pane_tree($tree_id, $leaf_id, $host_group_data) {
}

if (get_request_var('graphs') == '-1') {
$graph_rows = read_user_setting('treeview_graphs_per_page', read_config_option('treeview_graphs_per_page', 10));
$graph_rows = read_user_setting('treeview_graphs_per_page', read_config_option('treeview_graphs_per_page'), 10);
} else {
$graph_rows = get_request_var('graphs');
}
Expand Down

0 comments on commit b0b3fb7

Please sign in to comment.