@@ -1047,11 +1047,7 @@ function hosts($header_label) {
10471047 // ================= input validation =================
10481048
10491049 // if the number of rows is -1, set it to the default
1050- if (get_request_var ('rows ' ) == -1 ) {
1051- $ rows = read_config_option ('num_rows_table ' );
1052- } else {
1053- $ rows = get_request_var ('rows ' );
1054- }
1050+ $ rows = plugin_get_rows_per_page ();
10551051
10561052 html_start_box (__ ('Associated Devices ' , 'thold ' ) . ' ' . html_escape ($ header_label ), '100% ' , false , '3 ' , 'center ' , '' );
10571053
@@ -1375,11 +1371,7 @@ function tholds($header_label) {
13751371 }
13761372
13771373 // if the number of rows is -1, set it to the default
1378- if (get_request_var ('rows ' ) == -1 ) {
1379- $ rows = read_config_option ('num_rows_table ' );
1380- } else {
1381- $ rows = get_request_var ('rows ' );
1382- }
1374+ $ rows = plugin_get_rows_per_page ();
13831375
13841376 $ sql_where = '' ;
13851377
@@ -1724,11 +1716,7 @@ function templates($header_label) {
17241716 thold_template_request_validation ();
17251717
17261718 // if the number of rows is -1, set it to the default
1727- if (get_request_var ('rows ' ) == -1 ) {
1728- $ rows = read_config_option ('num_rows_table ' );
1729- } else {
1730- $ rows = get_request_var ('rows ' );
1731- }
1719+ $ rows = plugin_get_rows_per_page ();
17321720
17331721 $ sql_where = '' ;
17341722 $ sql_order = get_order_string ();
@@ -2069,11 +2057,7 @@ function lists() {
20692057 // ================= input validation =================
20702058
20712059 // if the number of rows is -1, set it to the default
2072- if (get_request_var ('rows ' ) == -1 ) {
2073- $ rows = read_config_option ('num_rows_table ' );
2074- } else {
2075- $ rows = get_request_var ('rows ' );
2076- }
2060+ $ rows = plugin_get_rows_per_page ();
20772061
20782062 html_start_box (__ ('Notification Lists ' , 'thold ' ), '100% ' , false , '3 ' , 'center ' , 'notify_lists.php?action=edit ' );
20792063
0 commit comments